Futuresony commited on
Commit
96439ed
·
verified ·
1 Parent(s): 4f7064a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def process_audio(audio_data):
22
  # Define the Gradio Interface
23
  interface = gr.Interface(
24
  fn=process_audio,
25
- inputs=gr.Audio(source="microphone", type="numpy"), # Can either record or upload audio
26
  outputs=[gr.Textbox(label="Generated Text"), gr.Audio(label="Generated Speech")],
27
  live=True
28
  )
 
22
  # Define the Gradio Interface
23
  interface = gr.Interface(
24
  fn=process_audio,
25
+ inputs=gr.Audio(type="numpy"), # Removed 'source' argument and kept 'type'
26
  outputs=[gr.Textbox(label="Generated Text"), gr.Audio(label="Generated Speech")],
27
  live=True
28
  )