KingNish commited on
Commit
4a9497e
1 Parent(s): f03092a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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], live=True)
 
 
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: