Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -193,7 +193,7 @@ class CustomEncoderWav2vec2Classifier(Pretrained):
|
|
193 |
|
194 |
|
195 |
def return_prediction(mic, file):
|
196 |
-
|
197 |
out_prob, score, index, text_lab = classifier.classify_file("anger.wav")
|
198 |
return text_lab
|
199 |
|
|
|
193 |
|
194 |
|
195 |
def return_prediction(mic, file):
|
196 |
+
classifier = foreign_class(source="Porjaz/wavlm-base-emo-fi", pymodule_file="custom_interface.py", classname="CustomEncoderWav2vec2Classifier")
|
197 |
out_prob, score, index, text_lab = classifier.classify_file("anger.wav")
|
198 |
return text_lab
|
199 |
|