mskov commited on
Commit
e88f2cd
·
1 Parent(s): 713b582

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -88,7 +88,6 @@ def classify_toxicity(audio_file, selected_sounds, slider):
88
 
89
  class_score_dict = {class_name: score for class_name, score in zip(class_names, scores)}
90
  matching_label_score = {}
91
- exceeding_threshold = []
92
 
93
  # Iterate through the selected sounds
94
  for selected_class_name in selected_sounds:
@@ -101,8 +100,6 @@ def classify_toxicity(audio_file, selected_sounds, slider):
101
  highest_float = float(highest_score)
102
 
103
  if highest_score is not None and highest_float > threshold:
104
- exceeding_threshold.append((label, score))
105
- print(exceeding_threshold)
106
  affirm = "Threshold Exceeded"
107
  else:
108
  affirm = " "
 
88
 
89
  class_score_dict = {class_name: score for class_name, score in zip(class_names, scores)}
90
  matching_label_score = {}
 
91
 
92
  # Iterate through the selected sounds
93
  for selected_class_name in selected_sounds:
 
100
  highest_float = float(highest_score)
101
 
102
  if highest_score is not None and highest_float > threshold:
 
 
103
  affirm = "Threshold Exceeded"
104
  else:
105
  affirm = " "