Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,14 +122,13 @@ def classify_toxicity(audio_file, classify_anxiety, emo_class, explitive_selecti
|
|
| 122 |
topScore = ""
|
| 123 |
affirm = ""
|
| 124 |
if maxval > threshold:
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
topScore = maxval
|
| 133 |
else:
|
| 134 |
topScore = ""
|
| 135 |
affirm = ""
|
|
|
|
| 122 |
topScore = ""
|
| 123 |
affirm = ""
|
| 124 |
if maxval > threshold:
|
| 125 |
+
print("Toxic")
|
| 126 |
+
affirm = positive_affirmations()
|
| 127 |
+
topScore = maxval
|
| 128 |
+
else:
|
| 129 |
+
print("Not Toxic")
|
| 130 |
+
affirm = ""
|
| 131 |
+
topScore = maxval
|
|
|
|
| 132 |
else:
|
| 133 |
topScore = ""
|
| 134 |
affirm = ""
|