seeafrica commited on
Commit
125c8ef
1 Parent(s): a4a5329

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ examples = ['example_audio.mp3']
40
 
41
  gr.Interface(
42
  fn=predict,
43
- inputs=gr.Audio(sources="upload", type="filepath", label="Upload audio (WAV or MP3)"),
44
  outputs=gr.components.Label(num_top_classes=3),
45
  examples=examples,
46
  ).launch()
 
40
 
41
  gr.Interface(
42
  fn=predict,
43
+ inputs=gr.Audio(source="microphone", type="filepath", label="Upload audio (WAV or MP3)"),
44
  outputs=gr.components.Label(num_top_classes=3),
45
  examples=examples,
46
  ).launch()