Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def analyze_selected_texts(selections):
|
|
41 |
result_df = pd.DataFrame({"Selected Text": selected_texts, "Analysis": analysis_results})
|
42 |
return result_df
|
43 |
|
44 |
-
def calculate_accuracy(flood_selections, fire_selections,
|
45 |
incorrect = len(flood_selections) + len(fire_selections) + len(none_selections)
|
46 |
correct = num_posts - incorrect
|
47 |
accuracy = (correct/num_posts)*100
|
|
|
41 |
result_df = pd.DataFrame({"Selected Text": selected_texts, "Analysis": analysis_results})
|
42 |
return result_df
|
43 |
|
44 |
+
def calculate_accuracy(flood_selections, fire_selections, none_selections, num_posts):
|
45 |
incorrect = len(flood_selections) + len(fire_selections) + len(none_selections)
|
46 |
correct = num_posts - incorrect
|
47 |
accuracy = (correct/num_posts)*100
|