Fix a bug
This commit is contained in:
parent
0d36c18f5d
commit
7221d1389a
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ def stop_everything_event():
|
|||
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):
|
||||
if shared.model_type not in ['HF_seq2seq']:
|
||||
reply = reply + question
|
||||
reply = question + reply
|
||||
|
||||
yield formatted_outputs(reply, shared.model_name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue