Update app.py
Browse files
app.py
CHANGED
@@ -51,8 +51,8 @@ def predict_image(pic):
|
|
51 |
|
52 |
emotion_analysis(custom[0])
|
53 |
|
54 |
-
|
55 |
-
|
56 |
|
57 |
#plt.gray()
|
58 |
#plt.imshow(show_img)
|
|
|
51 |
|
52 |
emotion_analysis(custom[0])
|
53 |
|
54 |
+
x = np.array(x, 'float32')
|
55 |
+
x = x.reshape([48, 48]);
|
56 |
|
57 |
#plt.gray()
|
58 |
#plt.imshow(show_img)
|