Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -83,8 +83,8 @@ with gr.Blocks() as demo:
|
|
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 |
-
|
88 |
|
89 |
with gr.Row(equal_height=True):
|
90 |
with gr.Column(scale=5):
|
@@ -97,11 +97,14 @@ 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 |
-
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)
|
|
|
|
|
|
|
105 |
|
106 |
with gr.Tab("Question Answering"):
|
107 |
# XXX Add some button disabling here, if the classification process is not completed first XXX
|
|
|
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):
|
|
|
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)
|
105 |
+
|
106 |
+
predict_button.click(load_and_analyze_csv, inputs=[file_input, text_field, event_model],
|
107 |
+
outputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, model_confidence])
|
108 |
|
109 |
with gr.Tab("Question Answering"):
|
110 |
# XXX Add some button disabling here, if the classification process is not completed first XXX
|