Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -163,13 +163,13 @@ def predict_single_text(text, threshold):
|
|
| 163 |
threshold_input = gr.Slider(minimum=0.0, maximum=1.0, value=0.3, step=0.01, label="Threshold value (default=0.3)")
|
| 164 |
iface2 = gr.Interface(fn=predict_single_text,
|
| 165 |
inputs=[gr.Textbox(lines=7, label="Paste or type text here"), threshold_input],
|
| 166 |
-
outputs=[gr.Label(label="
|
| 167 |
-
gr.Plot(label="Likelihood of all labels", show_label=
|
| 168 |
title="Single Text Prediction",
|
| 169 |
description="""**Threshold value:** The threshold value determines the minimum probability required
|
| 170 |
for a label to be predicted. A higher threshold value will result in fewer labels being predicted,
|
| 171 |
while a lower threshold value will result in more labels being predicted. The default threshold value is 0.3.""",
|
| 172 |
-
article="**Note:** The quality of model predictions may depend on the quality of information provided.")
|
| 173 |
|
| 174 |
|
| 175 |
# UPLOAD CSV
|
|
|
|
| 163 |
threshold_input = gr.Slider(minimum=0.0, maximum=1.0, value=0.3, step=0.01, label="Threshold value (default=0.3)")
|
| 164 |
iface2 = gr.Interface(fn=predict_single_text,
|
| 165 |
inputs=[gr.Textbox(lines=7, label="Paste or type text here"), threshold_input],
|
| 166 |
+
outputs=[gr.Label(label="Predicted Labels", show_label=True),
|
| 167 |
+
gr.Plot(label="Likelihood of all labels", show_label=False)],
|
| 168 |
title="Single Text Prediction",
|
| 169 |
description="""**Threshold value:** The threshold value determines the minimum probability required
|
| 170 |
for a label to be predicted. A higher threshold value will result in fewer labels being predicted,
|
| 171 |
while a lower threshold value will result in more labels being predicted. The default threshold value is 0.3.""",
|
| 172 |
+
article="**Note:** The quality of model predictions may depend on the quality of the information provided.")
|
| 173 |
|
| 174 |
|
| 175 |
# UPLOAD CSV
|