mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Mitigate UnboundLocalError (#2136)
This commit is contained in:
parent
50c70e28f0
commit
1b52bddfcc
@ -291,6 +291,7 @@ def generate_reply_custom(question, original_question, seed, state, eos_token=No
|
||||
generate_params[k] = state[k]
|
||||
|
||||
t0 = time.time()
|
||||
reply = ''
|
||||
try:
|
||||
if not is_chat:
|
||||
yield ''
|
||||
|
Loading…
Reference in New Issue
Block a user