Upload folder using huggingface_hub
Browse files
chat.py
CHANGED
@@ -94,7 +94,7 @@ def main():
|
|
94 |
speech.click(None, js=toggle_js)
|
95 |
msg = gr.Textbox(label="Say something.", elem_id="textbox")
|
96 |
mic = gr.Microphone(type="filepath", format="mp3", editable=False, waveform_options={"show_controls": False}, visible=False)
|
97 |
-
player = gr.Audio(autoplay=True, editable=False, waveform_options={"show_controls": False})
|
98 |
msg.submit(user, [msg, mic, chatbot, thread], [msg, chatbot]).then(
|
99 |
bot, [chatbot, thread], chatbot).then(
|
100 |
speak, chatbot, player
|
|
|
94 |
speech.click(None, js=toggle_js)
|
95 |
msg = gr.Textbox(label="Say something.", elem_id="textbox")
|
96 |
mic = gr.Microphone(type="filepath", format="mp3", editable=False, waveform_options={"show_controls": False}, visible=False)
|
97 |
+
player = gr.Audio(autoplay=True, editable=False, waveform_options={"show_controls": False}, visible=False)
|
98 |
msg.submit(user, [msg, mic, chatbot, thread], [msg, chatbot]).then(
|
99 |
bot, [chatbot, thread], chatbot).then(
|
100 |
speak, chatbot, player
|