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