Redmind commited on
Commit
35bbca6
·
verified ·
1 Parent(s): 1a022d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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):