Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,12 @@ def classify_audio(filepath):
|
|
11 |
outputs[p["label"]] = p["score"]
|
12 |
return outputs
|
13 |
|
|
|
|
|
|
|
|
|
|
|
14 |
demo = gr.Interface(
|
15 |
-
fn=classify_audio, inputs=gr.Audio(type="filepath"), outputs=gr.outputs.Label()
|
16 |
)
|
17 |
demo.launch(debug=True)
|
|
|
11 |
outputs[p["label"]] = p["score"]
|
12 |
return outputs
|
13 |
|
14 |
+
examples = [
|
15 |
+
["blues.mp3"],
|
16 |
+
["hiphop.mp3"],
|
17 |
+
]
|
18 |
+
|
19 |
demo = gr.Interface(
|
20 |
+
fn=classify_audio, inputs=gr.Audio(type="filepath"), outputs=gr.outputs.Label(), examples=examples
|
21 |
)
|
22 |
demo.launch(debug=True)
|