Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,6 +110,7 @@ with gr.Blocks() as demo:
|
|
| 110 |
accuracy = gr.Number(label="Model Accuracy", value=0)
|
| 111 |
|
| 112 |
accuracy_button = gr.Button("Calculate Accuracy")
|
|
|
|
| 113 |
predict_button.click(load_and_analyze_csv, inputs=[file_input, text_field, event_model],
|
| 114 |
outputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, model_confidence, num_posts])
|
| 115 |
accuracy_button.click(calculate_accuracy, inputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, num_posts],
|
|
|
|
| 110 |
accuracy = gr.Number(label="Model Accuracy", value=0)
|
| 111 |
|
| 112 |
accuracy_button = gr.Button("Calculate Accuracy")
|
| 113 |
+
num_posts = gr.Number(visible=False)
|
| 114 |
predict_button.click(load_and_analyze_csv, inputs=[file_input, text_field, event_model],
|
| 115 |
outputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, model_confidence, num_posts])
|
| 116 |
accuracy_button.click(calculate_accuracy, inputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, num_posts],
|