mskov commited on
Commit
c8c950f
1 Parent(s): b31f1e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def classify_emotion():
48
  return emo_dict[text_lab[0]], emostr
49
 
50
  # Create a Gradio interface with audio file and text inputs
51
- def classify_toxicity(audio_file, text_input, classify_anxiety):
52
  # Transcribe the audio file using Whisper ASR
53
  if audio_file != None:
54
  transcribed_text = pipe(audio_file)["text"]
 
48
  return emo_dict[text_lab[0]], emostr
49
 
50
  # Create a Gradio interface with audio file and text inputs
51
+ def classify_toxicity(audio_file, text_input, classify_anxiety, emo_class):
52
  # Transcribe the audio file using Whisper ASR
53
  if audio_file != None:
54
  transcribed_text = pipe(audio_file)["text"]