Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1634,7 +1634,7 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
1634 |
# fn=clear_textbox, inputs=[], outputs=[chat_input], api_name="api_clear_textbox"
|
1635 |
# )
|
1636 |
|
1637 |
-
|
1638 |
fn=add_message, inputs=[chatbot, chat_input], outputs=[chatbot, chat_input], api_name="api_addprompt_chathistory"
|
1639 |
).then(
|
1640 |
# First, generate the bot response
|
|
|
1634 |
# fn=clear_textbox, inputs=[], outputs=[chat_input], api_name="api_clear_textbox"
|
1635 |
# )
|
1636 |
|
1637 |
+
chat_input.submit(fn=stop_audio, inputs=[], outputs=[audio_output], api_name="api_stop_audio_recording").then(
|
1638 |
fn=add_message, inputs=[chatbot, chat_input], outputs=[chatbot, chat_input], api_name="api_addprompt_chathistory"
|
1639 |
).then(
|
1640 |
# First, generate the bot response
|