Upload folder using huggingface_hub
Browse files
chat.py
CHANGED
@@ -91,7 +91,7 @@ with gr.Blocks(title="Paitient Sim", css=css) as demo:
|
|
91 |
msg = gr.Textbox(label="Say something.", elem_id="textbox")
|
92 |
mic = gr.Microphone(type="filepath", format="mp3", editable=False, waveform_options={"show_controls": False}, visible=False)
|
93 |
thread = gr.State(start_thread)
|
94 |
-
audio_html = gr.HTML(visible=
|
95 |
msg.submit(user, [msg, mic, chatbot, thread], [msg, chatbot], queue=False).then(
|
96 |
bot, [chatbot, thread], chatbot
|
97 |
).then(
|
|
|
91 |
msg = gr.Textbox(label="Say something.", elem_id="textbox")
|
92 |
mic = gr.Microphone(type="filepath", format="mp3", editable=False, waveform_options={"show_controls": False}, visible=False)
|
93 |
thread = gr.State(start_thread)
|
94 |
+
audio_html = gr.HTML(visible=False)
|
95 |
msg.submit(user, [msg, mic, chatbot, thread], [msg, chatbot], queue=False).then(
|
96 |
bot, [chatbot, thread], chatbot
|
97 |
).then(
|