mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04: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