Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ def classify_toxicity(audio_file, text_input, classify_anxiety, emo_class, expli
|
|
| 58 |
transcribed_text = text_input
|
| 59 |
if classify_anxiety != "misophonia":
|
| 60 |
# explitive call
|
| 61 |
-
if replace_explitives != None
|
| 62 |
transcribed_text = replace_explitives.sub_explitives(transcribed_text, explitive_selection)
|
| 63 |
|
| 64 |
#### Toxicity Classifier ####
|
|
|
|
| 58 |
transcribed_text = text_input
|
| 59 |
if classify_anxiety != "misophonia":
|
| 60 |
# explitive call
|
| 61 |
+
if replace_explitives != None and emo_class == None:
|
| 62 |
transcribed_text = replace_explitives.sub_explitives(transcribed_text, explitive_selection)
|
| 63 |
|
| 64 |
#### Toxicity Classifier ####
|