Mitigate UnboundLocalError (#2136)
This commit is contained in:
parent
50c70e28f0
commit
1b52bddfcc
1 changed files with 1 additions and 0 deletions
|
@ -291,6 +291,7 @@ def generate_reply_custom(question, original_question, seed, state, eos_token=No
|
||||||
generate_params[k] = state[k]
|
generate_params[k] = state[k]
|
||||||
|
|
||||||
t0 = time.time()
|
t0 = time.time()
|
||||||
|
reply = ''
|
||||||
try:
|
try:
|
||||||
if not is_chat:
|
if not is_chat:
|
||||||
yield ''
|
yield ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue