OuroborosM commited on
Commit
2f0bcb7
·
1 Parent(s): 1dfbc55

correct text submit

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -866,8 +866,12 @@ with gr.Blocks() as demo:
866
  # upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
867
  clear_button.click(clearall, None, chatbot)
868
  retry_button.click(retry, chatbot, chatbot)
869
- inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
870
- then(playsound, None, voice_output)
 
 
 
 
871
  inf3 = submit_button.click(HMI_Runing, None, [submit_button, stop_button]).\
872
  then(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
873
  then(playsound, None, voice_output).\
 
866
  # upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
867
  clear_button.click(clearall, None, chatbot)
868
  retry_button.click(retry, chatbot, chatbot)
869
+ # inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
870
+ # then(playsound, None, voice_output)
871
+ inf1 = inputtext.submit(HMI_Runing, None, [submit_button, stop_button]).\
872
+ then(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
873
+ then(playsound, None, voice_output).\
874
+ then(HMI_Wait, None, [submit_button, stop_button])
875
  inf3 = submit_button.click(HMI_Runing, None, [submit_button, stop_button]).\
876
  then(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
877
  then(playsound, None, voice_output).\