drsaikirant88 commited on
Commit
74808e7
1 Parent(s): 38b500c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -246,7 +246,7 @@ def predict(img):
246
 
247
  if len(faces) == 0:
248
 
249
- img = img.resize(48, 48)
250
 
251
  pred_emotion, pred_emotion_idx, probs_emotion = learn_emotion.predict(array(grayscale(img)))
252
 
 
246
 
247
  if len(faces) == 0:
248
 
249
+ img = img.resize((48, 48))
250
 
251
  pred_emotion, pred_emotion_idx, probs_emotion = learn_emotion.predict(array(grayscale(img)))
252