Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -516,9 +516,9 @@ def handle_query(user_question, chatbot, audio=None):
|
|
| 516 |
# Clear previous stop event and future
|
| 517 |
stop_event.clear()
|
| 518 |
print(user_question)
|
| 519 |
-
if future and not future.done():
|
| 520 |
-
|
| 521 |
-
|
| 522 |
|
| 523 |
print(user_question)
|
| 524 |
# Start the processing in a new thread
|
|
|
|
| 516 |
# Clear previous stop event and future
|
| 517 |
stop_event.clear()
|
| 518 |
print(user_question)
|
| 519 |
+
#if future and not future.done():
|
| 520 |
+
# chatbot.append(("","A query is already being processed. Please stop it before starting a new one."))
|
| 521 |
+
# return gr.update(value=chatbot)
|
| 522 |
|
| 523 |
print(user_question)
|
| 524 |
# Start the processing in a new thread
|