KikoDM commited on
Commit
21178a5
·
1 Parent(s): f52b50a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(-1,48,48,1)
50
  custom = new_model.predict(x)
51
 
52
  emotion_analysis(custom[0])
@@ -71,7 +71,7 @@ iface = gr.Interface(
71
  predict_image,
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
  ],
76
 
77
  "text",
 
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])
 
71
  predict_image,
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")
75
  ],
76
 
77
  "text",