Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -130,7 +130,7 @@ def classify_toxicity(audio_file, classify_anxiety, emo_class, explitive_selecti
|
|
| 130 |
affirm = ""
|
| 131 |
topScore = toxicity_score
|
| 132 |
else:
|
| 133 |
-
if
|
| 134 |
affirm = positive_affirmations()
|
| 135 |
topScore = toxicity_score
|
| 136 |
else:
|
|
|
|
| 130 |
affirm = ""
|
| 131 |
topScore = toxicity_score
|
| 132 |
else:
|
| 133 |
+
if toxicity_score > threshold:
|
| 134 |
affirm = positive_affirmations()
|
| 135 |
topScore = toxicity_score
|
| 136 |
else:
|