Upload folder using huggingface_hub
Browse files
chat.py
CHANGED
@@ -86,15 +86,14 @@ with gr.Blocks(title="Paitient Sim", css=css) as demo:
|
|
86 |
audio_html = gr.HTML()
|
87 |
audio_html.visible = False
|
88 |
msg.submit(user, [msg, mic, chatbot, thread], [msg, chatbot], queue=False).then(
|
89 |
-
bot, [chatbot, thread], chatbot
|
90 |
-
).then(
|
91 |
speak, chatbot, audio_html
|
92 |
)
|
93 |
mic.stop_recording(user, [msg, mic, chatbot, thread], [msg, chatbot], queue=False).then(
|
94 |
-
lambda:None, None, mic
|
95 |
bot, [chatbot, thread], chatbot).then(
|
96 |
speak, chatbot, audio_html)
|
97 |
|
98 |
demo.queue()
|
99 |
-
demo.launch(
|
100 |
|
|
|
86 |
audio_html = gr.HTML()
|
87 |
audio_html.visible = False
|
88 |
msg.submit(user, [msg, mic, chatbot, thread], [msg, chatbot], queue=False).then(
|
89 |
+
bot, [chatbot, thread], chatbot).then(
|
|
|
90 |
speak, chatbot, audio_html
|
91 |
)
|
92 |
mic.stop_recording(user, [msg, mic, chatbot, thread], [msg, chatbot], queue=False).then(
|
93 |
+
lambda:None, None, mic).then(
|
94 |
bot, [chatbot, thread], chatbot).then(
|
95 |
speak, chatbot, audio_html)
|
96 |
|
97 |
demo.queue()
|
98 |
+
demo.launch()
|
99 |
|