jayebaku commited on
Commit
d30d1fc
·
verified ·
1 Parent(s): ab2e768

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, none_selection, num_posts):
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