KikoDM commited on
Commit
faf4dab
·
1 Parent(s): 3565d13

Update app.py

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