Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -128,14 +128,6 @@ def classify_toxicity(audio_file, classify_anxiety, emo_class, explitive_selecti
|
|
| 128 |
print("Not Toxic")
|
| 129 |
affirm = ""
|
| 130 |
topScore = maxval
|
| 131 |
-
else:
|
| 132 |
-
if toxicity_score > threshold:
|
| 133 |
-
affirm = positive_affirmations()
|
| 134 |
-
topScore = toxicity_score
|
| 135 |
-
else:
|
| 136 |
-
print("Not Toxic")
|
| 137 |
-
affirm = ""
|
| 138 |
-
topScore = toxicity_score
|
| 139 |
else:
|
| 140 |
if toxicity_score > threshold:
|
| 141 |
affirm = positive_affirmations()
|
|
|
|
| 128 |
print("Not Toxic")
|
| 129 |
affirm = ""
|
| 130 |
topScore = maxval
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
else:
|
| 132 |
if toxicity_score > threshold:
|
| 133 |
affirm = positive_affirmations()
|