Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -597,8 +597,11 @@ def stop_processing():
|
|
597 |
if future and not future.done():
|
598 |
stop_event.set() # Signal the process to stop
|
599 |
future.cancel() # Attempt to cancel the future
|
600 |
-
|
601 |
-
|
|
|
|
|
|
|
602 |
|
603 |
def answer_question_test(user_question, chatbot, audio=None):
|
604 |
|
|
|
597 |
if future and not future.done():
|
598 |
stop_event.set() # Signal the process to stop
|
599 |
future.cancel() # Attempt to cancel the future
|
600 |
+
chatbot.append("Sorry, there is some issue with the query. Please try after some time.", "")
|
601 |
+
return gr.update(value=chatbot)
|
602 |
+
#return "No ongoing processing to stop."
|
603 |
+
chatbot.append("Sorry, there is some issue with the query. Please try after some time.", "")
|
604 |
+
return gr.update(value=chatbot)
|
605 |
|
606 |
def answer_question_test(user_question, chatbot, audio=None):
|
607 |
|