mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-24 13:28:59 +01:00
Fix a bug
This commit is contained in:
parent
0d36c18f5d
commit
7221d1389a
@ -147,7 +147,7 @@ def stop_everything_event():
|
|||||||
def generate_reply_wrapper(question, state, eos_token=None, stopping_strings=None):
|
def generate_reply_wrapper(question, state, eos_token=None, stopping_strings=None):
|
||||||
for reply in generate_reply(question, state, eos_token, stopping_strings, is_chat=False):
|
for reply in generate_reply(question, state, eos_token, stopping_strings, is_chat=False):
|
||||||
if shared.model_type not in ['HF_seq2seq']:
|
if shared.model_type not in ['HF_seq2seq']:
|
||||||
reply = reply + question
|
reply = question + reply
|
||||||
|
|
||||||
yield formatted_outputs(reply, shared.model_name)
|
yield formatted_outputs(reply, shared.model_name)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user