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