Terps commited on
Commit
b178faa
1 Parent(s): f06a0e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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)