Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -576,7 +576,7 @@ def handle_query(user_question, chatbot, audio=None):
|
|
| 576 |
while not future.done():
|
| 577 |
if stop_event.is_set():
|
| 578 |
future.cancel()
|
| 579 |
-
return [("
|
| 580 |
time.sleep(1) # Wait for 1 second before checking again
|
| 581 |
|
| 582 |
if future.cancelled():
|
|
|
|
| 576 |
while not future.done():
|
| 577 |
if stop_event.is_set():
|
| 578 |
future.cancel()
|
| 579 |
+
return [(user_question, "Sorry, we encountered an error while processing your requestPlease try after some time.")]
|
| 580 |
time.sleep(1) # Wait for 1 second before checking again
|
| 581 |
|
| 582 |
if future.cancelled():
|