Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
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()
|