Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,9 +68,19 @@ with gr.Blocks() as demo:
|
|
| 68 |
gr.Markdown("""### None""")
|
| 69 |
none_checkbox_output = gr.CheckboxGroup(label="Select ONLY incorrect classifications", interactive=True)
|
| 70 |
|
| 71 |
-
model_confidence = gr.Number(label="Model Confidence")
|
| 72 |
predict_button.click(load_and_analyze_csv, inputs=[file_input, text_field, event_model],
|
| 73 |
-
outputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, model_confidence])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
with gr.Tab("Question Answering"):
|
| 76 |
# XXX Add some button disabling here, if the classification process is not completed first XXX
|
|
|
|
| 68 |
gr.Markdown("""### None""")
|
| 69 |
none_checkbox_output = gr.CheckboxGroup(label="Select ONLY incorrect classifications", interactive=True)
|
| 70 |
|
| 71 |
+
# model_confidence = gr.Number(label="Model Confidence")
|
| 72 |
predict_button.click(load_and_analyze_csv, inputs=[file_input, text_field, event_model],
|
| 73 |
+
outputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, model_confidence])
|
| 74 |
+
|
| 75 |
+
gr.Markdown(r"""
|
| 76 |
+
Accuracy: is the model's ability to make correct predicitons.
|
| 77 |
+
It is the fraction of correct prediction out of the total predictions.
|
| 78 |
+
$$
|
| 79 |
+
\text{Accuracy} = \frac{\text{Correct predictions}}{\text{All predictions}} * 100
|
| 80 |
+
$$
|
| 81 |
+
Model Confidence: is the mean probabilty of each case
|
| 82 |
+
belonging to their assigned classes. A value of 1 is best.
|
| 83 |
+
""", latex_delimiters=[{ "left": "$$", "right": "$$", "display": True }])
|
| 84 |
|
| 85 |
with gr.Tab("Question Answering"):
|
| 86 |
# XXX Add some button disabling here, if the classification process is not completed first XXX
|