kurianbenoy commited on
Commit
b8c0bc8
1 Parent(s): 17c370b

Use file type to upload audio

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -68,9 +68,7 @@ def end2endpipeline(filename):
68
 
69
  demo = gradio.Interface(
70
  fn=end2endpipeline,
71
- inputs=gradio.inputs.Audio(
72
- source="microphone", type="filepath", label="Record/ Drop audio"
73
- ),
74
  outputs=gradio.outputs.Label(num_top_classes=5),
75
  **interface_options,
76
  )
 
68
 
69
  demo = gradio.Interface(
70
  fn=end2endpipeline,
71
+ inputs=gradio.inputs.Audio(source="upload", type="filepath"),
 
 
72
  outputs=gradio.outputs.Label(num_top_classes=5),
73
  **interface_options,
74
  )