Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -132,8 +132,8 @@ with gr.Blocks() as demo:
|
|
132 |
outputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, model_confidence, num_posts, data])
|
133 |
accuracy_button.click(
|
134 |
calculate_accuracy,
|
135 |
-
inputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, num_posts, text_field, data
|
136 |
-
outputs=[incorrect, correct, accuracy, data_eval])
|
137 |
|
138 |
with gr.Tab("Question Answering"):
|
139 |
# XXX Add some button disabling here, if the classification process is not completed first XXX
|
|
|
132 |
outputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, model_confidence, num_posts, data])
|
133 |
accuracy_button.click(
|
134 |
calculate_accuracy,
|
135 |
+
inputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, num_posts, text_field, data],
|
136 |
+
outputs=[incorrect, correct, accuracy, data_eval, csv])
|
137 |
|
138 |
with gr.Tab("Question Answering"):
|
139 |
# XXX Add some button disabling here, if the classification process is not completed first XXX
|