Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"]
|