mskov commited on
Commit
e91d036
1 Parent(s): 62b1c9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- # 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 ####
 
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 ####