Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,7 +97,8 @@ def classify_toxicity(audio_file, selected_sounds, slider):
|
|
| 97 |
|
| 98 |
highest_score = max(matching_label_score.values())
|
| 99 |
highest_float = float(highest_score)
|
| 100 |
-
|
|
|
|
| 101 |
if highest_score is not None and highest_float > threshold:
|
| 102 |
affirm = "Threshold Exceeded, initiate intervention"
|
| 103 |
else:
|
|
|
|
| 97 |
|
| 98 |
highest_score = max(matching_label_score.values())
|
| 99 |
highest_float = float(highest_score)
|
| 100 |
+
print("highest float ", highest_float)
|
| 101 |
+
print("threshold", threshold)
|
| 102 |
if highest_score is not None and highest_float > threshold:
|
| 103 |
affirm = "Threshold Exceeded, initiate intervention"
|
| 104 |
else:
|