Redmind commited on
Commit
28a8111
·
verified ·
1 Parent(s): dbd5ba6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -564,7 +564,7 @@ def stop_processing(chatbot):
564
  if current_event and not current_event.done():
565
  stop_event.set() # Signal the process to stop
566
  current_event.cancel() # Attempt to cancel the current_event
567
- chatbot.append((user_question, "Sorry, we encountered an error while processing your request. Please try after some time."))
568
  return gr.update(value=chatbot)
569
 
570
  # This function is for agent executor invoke with the option of stop
 
564
  if current_event and not current_event.done():
565
  stop_event.set() # Signal the process to stop
566
  current_event.cancel() # Attempt to cancel the current_event
567
+ chatbot.append(("Sorry, we encountered an error while processing your request. Please try after some time.",""))
568
  return gr.update(value=chatbot)
569
 
570
  # This function is for agent executor invoke with the option of stop