Shokoufehhh commited on
Commit
244a928
·
verified ·
1 Parent(s): 4dd8499

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def enhance_speech(audio):
28
  # Set up the Gradio interface
29
  iface = gr.Interface(
30
  fn=enhance_speech,
31
- inputs=gr.Audio(source="upload", type="filepath"),
32
  outputs=gr.Audio(type="filepath"),
33
  title="Speech Enhancement",
34
  description="Upload a noisy audio file to enhance it using MetricGAN."
 
28
  # Set up the Gradio interface
29
  iface = gr.Interface(
30
  fn=enhance_speech,
31
+ inputs=gr.Audio(type="filepath"), # Removed 'source' argument
32
  outputs=gr.Audio(type="filepath"),
33
  title="Speech Enhancement",
34
  description="Upload a noisy audio file to enhance it using MetricGAN."