Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def classify_toxicity(audio_file, text_input, classify_anxiety):
|
|
46 |
|
47 |
#### Emotion classification ####
|
48 |
emotion_classifier = foreign_class(source="speechbrain/emotion-recognition-wav2vec2-IEMOCAP", pymodule_file="custom_interface.py", classname="CustomEncoderWav2vec2Classifier")
|
49 |
-
out_prob, score, index, text_lab = emotion_classifier.classify_file(audio_file
|
50 |
|
51 |
else:
|
52 |
transcribed_text = text_input
|
|
|
46 |
|
47 |
#### Emotion classification ####
|
48 |
emotion_classifier = foreign_class(source="speechbrain/emotion-recognition-wav2vec2-IEMOCAP", pymodule_file="custom_interface.py", classname="CustomEncoderWav2vec2Classifier")
|
49 |
+
out_prob, score, index, text_lab = emotion_classifier.classify_file(audio_file)
|
50 |
|
51 |
else:
|
52 |
transcribed_text = text_input
|