mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 01:30:20 +01:00
Update impersonate_wrapper
This commit is contained in:
parent
e283ddc559
commit
df37ba5256
@ -247,10 +247,12 @@ def impersonate_wrapper(text, state):
|
||||
if next_character_found:
|
||||
break
|
||||
|
||||
if reply is not None:
|
||||
if reply in [None, '']:
|
||||
break
|
||||
else:
|
||||
cumulative_reply = reply
|
||||
|
||||
yield reply
|
||||
yield cumulative_reply
|
||||
|
||||
|
||||
def generate_chat_reply(text, state, regenerate=False, _continue=False):
|
||||
|
Loading…
Reference in New Issue
Block a user