Spaces:
Running
Running
yuangongfdu
commited on
Commit
•
ec40d2b
1
Parent(s):
d45d3e7
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ iface = gr.Interface(fn=predict,
|
|
50 |
gr.Radio(["tiny", "tiny.en", "small", "large"], value='large', label="Model size", info="The larger the model, the better the performance and the slower the speed."),
|
51 |
gr.Radio(["Auto Detection", "English", "Chinese"], value='Auto Detection', label="Language", info="Please specify the language, or let the model detect it automatically"),
|
52 |
gr.Slider(1, 10, value=5, step=1, label="Top-K", info="The max number of labels to predict."),
|
53 |
-
gr.Slider(-10, 0, value=-
|
54 |
gr.Textbox(value='10', label='Time Resolution in Seconds (Must be must be an integer multiple of 0.4, e.g., 0.4, 2, 10)')],
|
55 |
outputs=[gr.Textbox(label="Speech Output"), gr.Textbox(label="Audio Tag Output")],
|
56 |
cache_examples=True,
|
|
|
50 |
gr.Radio(["tiny", "tiny.en", "small", "large"], value='large', label="Model size", info="The larger the model, the better the performance and the slower the speed."),
|
51 |
gr.Radio(["Auto Detection", "English", "Chinese"], value='Auto Detection', label="Language", info="Please specify the language, or let the model detect it automatically"),
|
52 |
gr.Slider(1, 10, value=5, step=1, label="Top-K", info="The max number of labels to predict."),
|
53 |
+
gr.Slider(-10, 0, value=-3, label="Prediction Threshold", info="The lower the threshold, the more predicted labels."),
|
54 |
gr.Textbox(value='10', label='Time Resolution in Seconds (Must be must be an integer multiple of 0.4, e.g., 0.4, 2, 10)')],
|
55 |
outputs=[gr.Textbox(label="Speech Output"), gr.Textbox(label="Audio Tag Output")],
|
56 |
cache_examples=True,
|