mskov commited on
Commit
187f615
·
1 Parent(s): f407d56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -52,11 +52,10 @@ def classify_toxicity(audio_file, text_input, classify_anxiety, emo_class, expli
52
  # Transcribe the audio file using Whisper ASR
53
  if audio_file != None:
54
  transcribed_text = pipe(audio_file)["text"]
55
-
56
- print("emo_class ", emo_class, "explitive select", explitive_selection)
57
  else:
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)
 
52
  # Transcribe the audio file using Whisper ASR
53
  if audio_file != None:
54
  transcribed_text = pipe(audio_file)["text"]
 
 
55
  else:
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)