Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,8 @@ def calculate_accuracy(flood_selections, fire_selections, none_selections, num_p
|
|
| 53 |
incorrect = len(selections)
|
| 54 |
correct = num_posts - incorrect
|
| 55 |
accuracy = (correct/num_posts)*100
|
| 56 |
-
|
|
|
|
| 57 |
return incorrect, correct, accuracy, data_df, gr.File.update(value="output.csv", visible=True)
|
| 58 |
|
| 59 |
|
|
|
|
| 53 |
incorrect = len(selections)
|
| 54 |
correct = num_posts - incorrect
|
| 55 |
accuracy = (correct/num_posts)*100
|
| 56 |
+
|
| 57 |
+
data_df.to_csv("output.csv")
|
| 58 |
return incorrect, correct, accuracy, data_df, gr.File.update(value="output.csv", visible=True)
|
| 59 |
|
| 60 |
|