KikoDM commited on
Commit
1784c4c
·
1 Parent(s): 504130f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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])
 
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])