mskov commited on
Commit
8c28395
1 Parent(s): 96f1e38

Update app.py

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