marsyao commited on
Commit
48fc887
·
verified ·
1 Parent(s): 58f4990

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -16,5 +16,8 @@ def predict_gender(filepath):
16
 
17
  audio_component = gr.Audio(type='filepath', label='Upload your audio file here')
18
  label_component = gr.Label(label='Gender classification result')
19
- demo = gr.Interface(fn=predict_gender, inputs=audio_component, outputs=label_component, examples=['00001.wav', '00002.wav'])
 
 
 
20
  demo.launch()
 
16
 
17
  audio_component = gr.Audio(type='filepath', label='Upload your audio file here')
18
  label_component = gr.Label(label='Gender classification result')
19
+
20
+ examples = [f'{i:05d}.wav' for i in range(1, 13)]
21
+
22
+ demo = gr.Interface(fn=predict_gender, inputs=audio_component, outputs=label_component, examples=examples)
23
  demo.launch()