Update inference_test_turkcell_with_intents.py
Browse files
inference_test_turkcell_with_intents.py
CHANGED
|
@@ -225,5 +225,6 @@ def setup_model():
|
|
| 225 |
traceback.print_exc()
|
| 226 |
|
| 227 |
threading.Thread(target=setup_model, daemon=True).start()
|
|
|
|
| 228 |
while True:
|
| 229 |
time.sleep(60)
|
|
|
|
| 225 |
traceback.print_exc()
|
| 226 |
|
| 227 |
threading.Thread(target=setup_model, daemon=True).start()
|
| 228 |
+
threading.Thread(target=lambda: uvicorn.run(app, host="0.0.0.0", port=7860), daemon=True).start()
|
| 229 |
while True:
|
| 230 |
time.sleep(60)
|