Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,9 @@ with gr.Blocks() as voice:
|
|
78 |
with gr.Row():
|
79 |
input = gr.Audio(label="Voice Chat (BETA)", sources="microphone", type="filepath", waveform_options=False)
|
80 |
output = gr.Audio(label="JARVIS", type="filepath", interactive=False, autoplay=True, elem_classes="audio")
|
81 |
-
gr.Interface(fn=respond, inputs=[input], outputs=[output]
|
|
|
|
|
82 |
|
83 |
# Live chat block
|
84 |
with gr.Blocks() as livechat:
|
|
|
78 |
with gr.Row():
|
79 |
input = gr.Audio(label="Voice Chat (BETA)", sources="microphone", type="filepath", waveform_options=False)
|
80 |
output = gr.Audio(label="JARVIS", type="filepath", interactive=False, autoplay=True, elem_classes="audio")
|
81 |
+
gr.Interface(fn=respond, inputs=[input], outputs=[output])
|
82 |
+
input.stop_recording(fn=respond, inputs=[input], outputs=[output])
|
83 |
+
|
84 |
|
85 |
# Live chat block
|
86 |
with gr.Blocks() as livechat:
|