Redmind commited on
Commit
9205517
·
verified ·
1 Parent(s): b97a57a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- return "Sorry, there is some issue with the query. Please try after some time."
601
- return "No ongoing processing to stop."
 
 
 
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