mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-23 21:18:00 +01:00
Don't return a value in an iterator function
This commit is contained in:
parent
ff9f649c0c
commit
7bbe32f618
@ -92,7 +92,7 @@ def generate_reply(question, max_new_tokens, do_sample, temperature, top_p, typi
|
||||
reply = shared.model.generate(question, token_count=8, temperature=temperature, top_p=top_p)
|
||||
yield formatted_outputs(reply, shared.model_name)
|
||||
question = reply
|
||||
return formatted_outputs(reply, shared.model_name)
|
||||
return
|
||||
|
||||
original_question = question
|
||||
if not (shared.args.chat or shared.args.cai_chat):
|
||||
|
Loading…
Reference in New Issue
Block a user