Spaces:
Running
Running
yuangongfdu
commited on
Commit
•
a83bf7a
1
Parent(s):
90c327a
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def predict(audio_path_m, audio_path_t, model_size, language, top_k, threshold,
|
|
49 |
|
50 |
iface = gr.Interface(fn=predict,
|
51 |
inputs=[gr.Audio(type="filepath", source='microphone', label='Please either upload an audio file or record using the microphone.', show_label=True), gr.Audio(type="filepath"),
|
52 |
-
gr.Radio(["tiny", "tiny.en", "small", "large"], value='
|
53 |
gr.Radio(["Auto Detection", "English", "Chinese"], value='Auto Detection', label="Language", info="Please specify the language, or let the model detect it automatically"),
|
54 |
gr.Slider(1, 10, value=5, step=1, label="Top-K", info="The max number of labels to predict."),
|
55 |
gr.Slider(-10, 0, value=-3, label="Prediction Threshold", info="The lower the threshold, the more predicted labels."),
|
|
|
49 |
|
50 |
iface = gr.Interface(fn=predict,
|
51 |
inputs=[gr.Audio(type="filepath", source='microphone', label='Please either upload an audio file or record using the microphone.', show_label=True), gr.Audio(type="filepath"),
|
52 |
+
gr.Radio(["tiny", "tiny.en", "small", "large"], value='small', label="Model size", info="The larger the model, the better the performance and the slower the speed."),
|
53 |
gr.Radio(["Auto Detection", "English", "Chinese"], value='Auto Detection', label="Language", info="Please specify the language, or let the model detect it automatically"),
|
54 |
gr.Slider(1, 10, value=5, step=1, label="Top-K", info="The max number of labels to predict."),
|
55 |
gr.Slider(-10, 0, value=-3, label="Prediction Threshold", info="The lower the threshold, the more predicted labels."),
|