Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -597,10 +597,10 @@ def stop_processing(chatbot):
|
|
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):
|
|
|
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):
|