From 1b52bddfcc70d2db88257d36f1c6d182573588c4 Mon Sep 17 00:00:00 2001 From: Konstantin Gukov Date: Fri, 19 May 2023 19:46:18 +0200 Subject: [PATCH] Mitigate UnboundLocalError (#2136) --- modules/text_generation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/text_generation.py b/modules/text_generation.py index 7bc5d25d..2aa4f71b 100644 --- a/modules/text_generation.py +++ b/modules/text_generation.py @@ -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 ''