Upload folder using huggingface_hub
Browse files
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
|
|
|
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(
|