Spaces:
Running
Running
Update app.py
Browse files
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((
|
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
|