mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-23 21:18:00 +01: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