Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ class LLMManager:
|
|
| 120 |
except Exception as e:
|
| 121 |
exception[0] = e
|
| 122 |
|
| 123 |
-
gen_thread = threading.Thread(target=generate)
|
| 124 |
gen_thread.start()
|
| 125 |
gen_thread.join(timeout=120)
|
| 126 |
|
|
|
|
| 120 |
except Exception as e:
|
| 121 |
exception[0] = e
|
| 122 |
|
| 123 |
+
gen_thread = threading.Thread(target=generate, daemon=True)
|
| 124 |
gen_thread.start()
|
| 125 |
gen_thread.join(timeout=120)
|
| 126 |
|