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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,9 +44,9 @@ def predict_image(pic):
44
  x = image.img_to_array(pic)
45
 
46
  x = np.expand_dims(x, axis = 0)
47
- x = x.reshape(-1,48,48,1)
48
  x /= 255
49
-
50
  custom = new_model.predict(x)
51
 
52
  emotion_analysis(custom[0])
 
44
  x = image.img_to_array(pic)
45
 
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])