Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -565,12 +565,12 @@ def handle_query(user_question, chatbot, audio=None):
|
|
| 565 |
|
| 566 |
# Clear previous stop event and future
|
| 567 |
stop_event.clear()
|
| 568 |
-
|
| 569 |
if future and not future.done():
|
| 570 |
return "A query is already being processed. Please stop it before starting a new one."
|
| 571 |
|
| 572 |
# Start the processing in a new thread
|
| 573 |
-
future = executor.submit(answer_question, user_question,chatbot)
|
| 574 |
|
| 575 |
# Check if the process is done or cancelled
|
| 576 |
if future.done():
|
|
|
|
| 565 |
|
| 566 |
# Clear previous stop event and future
|
| 567 |
stop_event.clear()
|
| 568 |
+
print(user_question)
|
| 569 |
if future and not future.done():
|
| 570 |
return "A query is already being processed. Please stop it before starting a new one."
|
| 571 |
|
| 572 |
# Start the processing in a new thread
|
| 573 |
+
future = executor.submit(answer_question, [user_question,chatbot])
|
| 574 |
|
| 575 |
# Check if the process is done or cancelled
|
| 576 |
if future.done():
|