Redmind commited on
Commit
2c06e96
·
verified ·
1 Parent(s): 65378d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -659,9 +659,9 @@ def handle_query(user_question, chatbot, audio=None):
659
  if stop_event.is_set():
660
  # Attempt to cancel the current_event
661
  if current_event.cancel():
662
- chatbot.append((user_question, "Processing was stopped by the user."))
663
  else:
664
- chatbot.append((user_question, "Unable to stop processing. Please try again."))
665
 
666
  # Return the updated chatbot and stop further processing
667
  return gr.update(value=chatbot)
 
659
  if stop_event.is_set():
660
  # Attempt to cancel the current_event
661
  if current_event.cancel():
662
+ chatbot.append((user_question, "Sorry. I am not able to process your request now. Please try again after some time."))
663
  else:
664
+ chatbot.append((user_question, "Sorry. I am not able to process your request now. Please try again after some time."))
665
 
666
  # Return the updated chatbot and stop further processing
667
  return gr.update(value=chatbot)