Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ def classify_toxicity(audio_file, selected_sounds, slider):
|
|
93 |
print(selected_sounds)
|
94 |
if selected_class_name in class_score_dict:
|
95 |
#score = class_score_dict[selected_class_name]
|
96 |
-
matching_label_score[class_name] =
|
97 |
for label, score in matching_label_score.items():
|
98 |
# Check if the score is greater than the threshold
|
99 |
if score > threshold:
|
|
|
93 |
print(selected_sounds)
|
94 |
if selected_class_name in class_score_dict:
|
95 |
#score = class_score_dict[selected_class_name]
|
96 |
+
matching_label_score[class_name] = class_score_dict[class_name]
|
97 |
for label, score in matching_label_score.items():
|
98 |
# Check if the score is greater than the threshold
|
99 |
if score > threshold:
|