Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def predict_image(pic):
|
|
50 |
emotion_analysis(custom[0])
|
51 |
|
52 |
x = np.array(x, 'float32')
|
53 |
-
x = x.reshape([48, 48
|
54 |
|
55 |
plt.gray()
|
56 |
plt.imshow(show_img)
|
@@ -69,7 +69,7 @@ iface = gr.Interface(
|
|
69 |
predict_image,
|
70 |
[
|
71 |
#gr.inputs.Image(shape=None, image_mode="RGB", invert_colors=False, source="upload", tool="editor", type="numpy", label=None, optional=False)
|
72 |
-
gr.inputs.Image(source="upload")
|
73 |
],
|
74 |
|
75 |
"text",
|
|
|
50 |
emotion_analysis(custom[0])
|
51 |
|
52 |
x = np.array(x, 'float32')
|
53 |
+
x = x.reshape([48, 48]);
|
54 |
|
55 |
plt.gray()
|
56 |
plt.imshow(show_img)
|
|
|
69 |
predict_image,
|
70 |
[
|
71 |
#gr.inputs.Image(shape=None, image_mode="RGB", invert_colors=False, source="upload", tool="editor", type="numpy", label=None, optional=False)
|
72 |
+
gr.inputs.Image(source="upload",shape=(48,48))
|
73 |
],
|
74 |
|
75 |
"text",
|