Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def predict_image(pic):
|
|
46 |
x = np.expand_dims(x, axis = 0)
|
47 |
|
48 |
x /= 255
|
49 |
-
x = x.reshape(
|
50 |
custom = new_model.predict(x)
|
51 |
|
52 |
emotion_analysis(custom[0])
|
|
|
46 |
x = np.expand_dims(x, axis = 0)
|
47 |
|
48 |
x /= 255
|
49 |
+
x = x.reshape(1,48,48,1)
|
50 |
custom = new_model.predict(x)
|
51 |
|
52 |
emotion_analysis(custom[0])
|