Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -572,7 +572,8 @@ def handle_query(user_question, chatbot, audio=None):
|
|
572 |
# Start the processing in a new thread
|
573 |
future = executor.submit(answer_question_test, user_question, chatbot)
|
574 |
print(future)
|
575 |
-
|
|
|
576 |
# Check if the process is done or cancelled
|
577 |
if future.done():
|
578 |
if future.cancelled():
|
|
|
572 |
# Start the processing in a new thread
|
573 |
future = executor.submit(answer_question_test, user_question, chatbot)
|
574 |
print(future)
|
575 |
+
import time
|
576 |
+
time.sleep(10)
|
577 |
# Check if the process is done or cancelled
|
578 |
if future.done():
|
579 |
if future.cancelled():
|