mizoru commited on
Commit
13fc1f5
·
1 Parent(s): 6ef206a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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,enable_queue=enable_queue).launch(debug=True,share=True)
 
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)