Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -109,6 +109,7 @@ with gr.Blocks() as demo:
|
|
109 |
""", latex_delimiters=[{ "left": "$$", "right": "$$", "display": True }])
|
110 |
gr.Markdown("\n\n\n")
|
111 |
model_confidence = gr.Number(label="Model Confidence")
|
|
|
112 |
with gr.Column(scale=5):
|
113 |
correct = gr.Number(label="Number of correct classifications")
|
114 |
incorrect = gr.Number(label="Number of incorrect classifications")
|
@@ -116,7 +117,8 @@ with gr.Blocks() as demo:
|
|
116 |
|
117 |
accuracy_button = gr.Button("Calculate Accuracy")
|
118 |
num_posts = gr.Number(visible=False)
|
119 |
-
|
|
|
120 |
|
121 |
predict_button.click(load_and_analyze_csv, inputs=[file_input, text_field, event_model],
|
122 |
outputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, model_confidence, num_posts, data, datacols])
|
|
|
109 |
""", latex_delimiters=[{ "left": "$$", "right": "$$", "display": True }])
|
110 |
gr.Markdown("\n\n\n")
|
111 |
model_confidence = gr.Number(label="Model Confidence")
|
112 |
+
|
113 |
with gr.Column(scale=5):
|
114 |
correct = gr.Number(label="Number of correct classifications")
|
115 |
incorrect = gr.Number(label="Number of incorrect classifications")
|
|
|
117 |
|
118 |
accuracy_button = gr.Button("Calculate Accuracy")
|
119 |
num_posts = gr.Number(visible=False)
|
120 |
+
cols = gr.CheckboxGroup(value=datacols, visible=False)
|
121 |
+
data = gr.DataFrame(headers=cols) #visible=False
|
122 |
|
123 |
predict_button.click(load_and_analyze_csv, inputs=[file_input, text_field, event_model],
|
124 |
outputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output, model_confidence, num_posts, data, datacols])
|