Upload folder using huggingface_hub
Browse files
chat.py
CHANGED
@@ -96,12 +96,13 @@ with gr.Blocks(title="Paitient Sim", css=css) as demo:
|
|
96 |
msg.submit(user, [msg, mic, chatbot, thread], [msg, chatbot], queue=False).then(
|
97 |
bot, [chatbot, thread], chatbot
|
98 |
).then(
|
99 |
-
speak, chatbot, gr.Audio
|
100 |
)
|
101 |
mic.stop_recording(user, [msg, mic, chatbot, thread], [msg, chatbot], queue=False).then(
|
102 |
lambda:None, None, mic, queue=False).then(
|
103 |
bot, [chatbot, thread], chatbot).then(
|
104 |
-
speak, chatbot, gr.Audio)
|
|
|
105 |
|
106 |
demo.queue()
|
107 |
demo.launch(auth=login)
|
|
|
96 |
msg.submit(user, [msg, mic, chatbot, thread], [msg, chatbot], queue=False).then(
|
97 |
bot, [chatbot, thread], chatbot
|
98 |
).then(
|
99 |
+
speak, chatbot, gr.Audio()
|
100 |
)
|
101 |
mic.stop_recording(user, [msg, mic, chatbot, thread], [msg, chatbot], queue=False).then(
|
102 |
lambda:None, None, mic, queue=False).then(
|
103 |
bot, [chatbot, thread], chatbot).then(
|
104 |
+
speak, chatbot, gr.Audio()
|
105 |
+
)
|
106 |
|
107 |
demo.queue()
|
108 |
demo.launch(auth=login)
|