Spaces:
Build error
Build error
Update app.py
Browse files563 unmodified lines564565566567568569570563 unmodified linesif current_event and not current_event.done():stop_event.set() # Signal the process to stopcurrent_event.cancel() # Attempt to cancel the current_eventchatbot.append((user_question, "Sorry, we encountered an error while processing your request. Please try after some time."))return gr.update(value=chatbot)# This function is for agent executor invoke with the option of stop563 unmodified lines564565566567568569570563 unmodified linesif current_event and not current_event.done():stop_event.set() # Signal the process to stopcurrent_event.cancel() # Attempt to cancel the current_eventchatbot.append(("Sorry, we encountered an error while processing your request. Please try after some time.",""))return gr.update(value=chatbot)# This function is for agent executor invoke with the option of stop
app.py+1-1