Spaces:
Running
Running
Update app.py
#1
by
seeafrica
- opened
app.py
CHANGED
@@ -40,7 +40,7 @@ examples = ['example_audio.mp3']
|
|
40 |
|
41 |
gr.Interface(
|
42 |
fn=predict,
|
43 |
-
inputs=gr.Audio(
|
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()
|