Pijush2023 commited on
Commit
9055762
·
verified ·
1 Parent(s): ffdee62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -123,7 +123,7 @@ def transcribe_and_respond(audio):
123
 
124
  # Define Gradio interface
125
  with gr.Blocks() as demo:
126
- audio_input = gr.Audio(sources="microphone", type="numpy", label="Speak to Ask") # Removed streaming mode for manual submission
127
  audio_output = gr.Audio(label="Response", type="filepath", autoplay=True, interactive=False)
128
 
129
  # "Submit Audio" button
 
123
 
124
  # Define Gradio interface
125
  with gr.Blocks() as demo:
126
+ audio_input = gr.Audio(sources="microphone", type="numpy", streaming=True, label="Speak to Ask") # Removed streaming mode for manual submission
127
  audio_output = gr.Audio(label="Response", type="filepath", autoplay=True, interactive=False)
128
 
129
  # "Submit Audio" button