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