Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -82,12 +82,12 @@ with gr.Blocks() as demo:
|
|
82 |
gr.Markdown("""### None""")
|
83 |
none_checkbox_output = gr.CheckboxGroup(label="Select ONLY incorrect classifications", interactive=True)
|
84 |
|
85 |
-
model_confidence = gr.Number(label="Model Confidence")
|
86 |
predict_button.click(load_and_analyze_csv, inputs=[file_input, text_field, event_model],
|
87 |
outputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, model_confidence])
|
88 |
|
89 |
with gr.Row(equal_height=True):
|
90 |
-
with gr.Column(scale=
|
91 |
gr.Markdown(r"""
|
92 |
Accuracy: is the model's ability to make correct predicitons.
|
93 |
It is the fraction of correct prediction out of the total predictions.
|
@@ -97,7 +97,8 @@ with gr.Blocks() as demo:
|
|
97 |
Model Confidence: is the mean probabilty of each case
|
98 |
belonging to their assigned classes. A value of 1 is best.
|
99 |
""", latex_delimiters=[{ "left": "$", "right": "$", "display": True }])
|
100 |
-
|
|
|
101 |
correct = gr.Number(label="Number of correct classifications", value=0)
|
102 |
incorrect = gr.Number(label="Number of incorrect classifications", value=0)
|
103 |
accuracy = gr.Number(label="Model Accuracy", value=0)
|
|
|
82 |
gr.Markdown("""### None""")
|
83 |
none_checkbox_output = gr.CheckboxGroup(label="Select ONLY incorrect classifications", interactive=True)
|
84 |
|
85 |
+
# model_confidence = gr.Number(label="Model Confidence")
|
86 |
predict_button.click(load_and_analyze_csv, inputs=[file_input, text_field, event_model],
|
87 |
outputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, model_confidence])
|
88 |
|
89 |
with gr.Row(equal_height=True):
|
90 |
+
with gr.Column(scale=5):
|
91 |
gr.Markdown(r"""
|
92 |
Accuracy: is the model's ability to make correct predicitons.
|
93 |
It is the fraction of correct prediction out of the total predictions.
|
|
|
97 |
Model Confidence: is the mean probabilty of each case
|
98 |
belonging to their assigned classes. A value of 1 is best.
|
99 |
""", latex_delimiters=[{ "left": "$", "right": "$", "display": True }])
|
100 |
+
model_confidence = gr.Number(label="Model Confidence")
|
101 |
+
with gr.Column(scale=5):
|
102 |
correct = gr.Number(label="Number of correct classifications", value=0)
|
103 |
incorrect = gr.Number(label="Number of incorrect classifications", value=0)
|
104 |
accuracy = gr.Number(label="Model Accuracy", value=0)
|