chibop commited on
Commit
16c32a6
·
verified ·
1 Parent(s): ffe3c09

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. chat.py +2 -1
chat.py CHANGED
@@ -95,7 +95,8 @@ with gr.Blocks(title="Paitient Sim", css=css) as demo:
95
  audio_html = gr.HTML(visible=False, elem_id="player")
96
  msg.submit(user, [msg, mic, chatbot, thread], [msg, chatbot]).then(
97
  bot, [chatbot, thread], chatbot).then(
98
- speak, chatbot, audio_html, js=play_js
 
99
  )
100
  mic.stop_recording(user, [msg, mic, chatbot, thread], [msg, chatbot]).then(
101
  lambda:None, None, mic).then(
 
95
  audio_html = gr.HTML(visible=False, elem_id="player")
96
  msg.submit(user, [msg, mic, chatbot, thread], [msg, chatbot]).then(
97
  bot, [chatbot, thread], chatbot).then(
98
+ speak, chatbot, audio_html).then(
99
+ None, None, None, js=play_js
100
  )
101
  mic.stop_recording(user, [msg, mic, chatbot, thread], [msg, chatbot]).then(
102
  lambda:None, None, mic).then(