EC2 Default User commited on
Commit
ad5a55f
1 Parent(s): 94ba0a3
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -226,7 +226,7 @@ with gr.Blocks(css="#chatbot{height:350px} .overflow-y-auto{height:500px}") as d
226
 
227
  #audio_html = gr.HTML()
228
 
229
- #txt.submit(predict, [txt, state], [chatbot, audio_output, state])
230
- #audio_input.change(process_audio, [audio_input, state], [chatbot, audio_output, state])
231
 
232
  demo.launch(debug=True)
 
226
 
227
  #audio_html = gr.HTML()
228
 
229
+ txt.submit(predict_text_only, [txt, state], [chatbot, audio_output, state])
230
+ audio_input.change(process_audio, [audio_input, state], [chatbot, audio_output, state])
231
 
232
  demo.launch(debug=True)