Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,9 +53,6 @@ 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 |
-
file_path = "/tmp/results.csv"
|
| 58 |
-
data_df.to_csv(file_path, index=False)
|
| 59 |
|
| 60 |
return incorrect, correct, accuracy, data_df, gr.File.update(value="output.csv", visible=True)
|
| 61 |
|
|
|
|
| 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 |
|