Update main.py
Browse files
main.py
CHANGED
@@ -96,7 +96,7 @@ emotions1 = {1: 'Neutral', 2: 'Calm', 3: 'Happy', 4: 'Sad',
|
|
96 |
def prediction(path1):
|
97 |
res = get_predict_feat(path1)
|
98 |
predictions = model.predict(res)
|
99 |
-
y_pred =
|
100 |
return y_pred[0][0]
|
101 |
|
102 |
|
|
|
96 |
def prediction(path1):
|
97 |
res = get_predict_feat(path1)
|
98 |
predictions = model.predict(res)
|
99 |
+
y_pred = encoder3.inverse_transform(predictions)
|
100 |
return y_pred[0][0]
|
101 |
|
102 |
|