OuroborosM commited on
Commit
84b12cb
·
1 Parent(s): 93eb493

sound replay

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -796,7 +796,7 @@ def clearall():
796
  # memory.clear()
797
  global Filename_Chatbot
798
  Filename_Chatbot = []
799
- return [[], gr.update(visible=True), gr.update(visible=False)]
800
 
801
  def retry(history3):
802
  global last_request
@@ -926,7 +926,7 @@ with gr.Blocks() as demo:
926
  frash_logs = gr.Button("Update Logs ...")
927
  logs = gr.Textbox(max_lines = 25)
928
  # upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
929
- clear_button.click(clearall, None, [chatbot, submit_button, stop_button])
930
  retry_button.click(retry, chatbot, chatbot).then(HMI_Wait, None, [submit_button, stop_button])
931
  # inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
932
  # then(playsound, None, voice_output)
@@ -952,8 +952,6 @@ with gr.Blocks() as demo:
952
  # demo.load(read_logs, None, logs, every=1)
953
 
954
 
955
-
956
-
957
  # demo = gr.Interface(
958
  # chathmi,
959
  # ["text", "state"],
 
796
  # memory.clear()
797
  global Filename_Chatbot
798
  Filename_Chatbot = []
799
+ return [[], gr.update(visible=True), gr.update(visible=False), []]
800
 
801
  def retry(history3):
802
  global last_request
 
926
  frash_logs = gr.Button("Update Logs ...")
927
  logs = gr.Textbox(max_lines = 25)
928
  # upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
929
+ clear_button.click(clearall, None, [chatbot, submit_button, stop_button], voice_output)
930
  retry_button.click(retry, chatbot, chatbot).then(HMI_Wait, None, [submit_button, stop_button])
931
  # inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
932
  # then(playsound, None, voice_output)
 
952
  # demo.load(read_logs, None, logs, every=1)
953
 
954
 
 
 
955
  # demo = gr.Interface(
956
  # chathmi,
957
  # ["text", "state"],