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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -589,7 +589,7 @@ def handle_query(user_question, chatbot, audio=None):
589
  return "Processing your request. You can stop it if needed."
590
 
591
 
592
- def stop_processing():
593
  """
594
  Stops the current processing if it's running.
595
  """
@@ -931,7 +931,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
931
  button = gr.Button("Submit", elem_id="submit",elem_classes="gr-button")
932
  # Button to stop the current processing
933
  stop_button = gr.Button("Stop Processing")
934
- stop_button.click(stop_processing, [],[chatbot])
935
 
936
  button.click(answer_question, [message, chatbot], [chatbot])
937
  message.submit(answer_question, [message, chatbot], [chatbot])
 
589
  return "Processing your request. You can stop it if needed."
590
 
591
 
592
+ def stop_processing(chatbot):
593
  """
594
  Stops the current processing if it's running.
595
  """
 
931
  button = gr.Button("Submit", elem_id="submit",elem_classes="gr-button")
932
  # Button to stop the current processing
933
  stop_button = gr.Button("Stop Processing")
934
+ stop_button.click(stop_processing, [chatbot],[chatbot])
935
 
936
  button.click(answer_question, [message, chatbot], [chatbot])
937
  message.submit(answer_question, [message, chatbot], [chatbot])