Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -188,7 +188,7 @@ with gr.Blocks(fill_width=True) as demo:
|
|
188 |
model_sing_classify = gr.Dropdown(event_models, value=event_models[0], label="Select classification model")
|
189 |
with gr.Column(scale=7):
|
190 |
with gr.Accordion("Prediction threshold", open=False):
|
191 |
-
|
192 |
info="This value sets a threshold by which texts classified flood or fire are accepted, \
|
193 |
higher values makes the classifier stricter (CAUTION: A value of 1 will set all predictions as none)", interactive=True)
|
194 |
|
|
|
188 |
model_sing_classify = gr.Dropdown(event_models, value=event_models[0], label="Select classification model")
|
189 |
with gr.Column(scale=7):
|
190 |
with gr.Accordion("Prediction threshold", open=False):
|
191 |
+
threshold_sing_classify = gr.Slider(0, 1, value=0, step=0.01, label="Prediction threshold", show_label=False,
|
192 |
info="This value sets a threshold by which texts classified flood or fire are accepted, \
|
193 |
higher values makes the classifier stricter (CAUTION: A value of 1 will set all predictions as none)", interactive=True)
|
194 |
|