Update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ with gr.Blocks() as demo:
|
|
| 103 |
|
| 104 |
with gr.Row():
|
| 105 |
submit = gr.Button("Send")
|
| 106 |
-
voice_input = gr.Audio(
|
| 107 |
|
| 108 |
# Handle text input
|
| 109 |
msg.submit(process_input, inputs=[msg, state], outputs=[state, chatbot, msg, voice_input]).then(
|
|
|
|
| 103 |
|
| 104 |
with gr.Row():
|
| 105 |
submit = gr.Button("Send")
|
| 106 |
+
voice_input = gr.Audio(sources="microphone", type="filepath", label="Voice Input")
|
| 107 |
|
| 108 |
# Handle text input
|
| 109 |
msg.submit(process_input, inputs=[msg, state], outputs=[state, chatbot, msg, voice_input]).then(
|