mskov commited on
Commit
3e73b5e
·
1 Parent(s): aad3a88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -97,7 +97,7 @@ def classify_toxicity(audio_file, selected_sounds, slider):
97
  matching_label_score[selected_class_name] = score
98
  print("matching label score type is ", type(matching_label_score))
99
 
100
- highest_score = max(matching_label_scores, key=matching_label_scores.get)
101
 
102
  if highest_score is not None and highest_score > threshold:
103
  exceeding_threshold.append((label, score))
 
97
  matching_label_score[selected_class_name] = score
98
  print("matching label score type is ", type(matching_label_score))
99
 
100
+ highest_score = max(matching_label_score, key=matching_label_score.get)
101
 
102
  if highest_score is not None and highest_score > threshold:
103
  exceeding_threshold.append((label, score))