Skip to content

Commit 9538048

Browse files
committed
fixed bug on predict_proba() method of EmotionRecognizer
1 parent 2e17178 commit 9538048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emotion_recognition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def predict_proba(self, audio_path):
182182
feature = extract_feature(audio_path, **self.audio_config).reshape(1, -1)
183183
proba = self.model.predict_proba(feature)[0]
184184
result = {}
185-
for emotion, prob in zip(self.emotions, proba):
185+
for emotion, prob in zip(self.model.classes_, proba):
186186
result[emotion] = prob
187187
return result
188188
else:

0 commit comments

Comments
 (0)