Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def predict(path):
|
|
19 |
|
20 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
21 |
|
22 |
-
|
23 |
|
24 |
title = "Japanese Pitch Accent Pattern Detector"
|
25 |
|
@@ -33,4 +33,4 @@ examples = ['example1.mp3']
|
|
33 |
|
34 |
enable_queue=True
|
35 |
|
36 |
-
gr.Interface(fn=predict,inputs=gr.inputs.Audio(source='microphone', type='filepath'),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,article=article,interpretation=interpretation,examples=examples
|
|
|
19 |
|
20 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
21 |
|
22 |
+
predict('example1.mp3')
|
23 |
|
24 |
title = "Japanese Pitch Accent Pattern Detector"
|
25 |
|
|
|
33 |
|
34 |
enable_queue=True
|
35 |
|
36 |
+
gr.Interface(fn=predict,inputs=gr.inputs.Audio(source='microphone', type='filepath'),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,article=article,interpretation=interpretation,examples=examples).launch(debug=True,share=True,enable_queue=enable_queue)
|