rushidarge commited on
Commit
0f31dfe
1 Parent(s): 8a369b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def import_and_predict(image_data, model):
22
  img = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
23
  #img_resize = (cv2.resize(img, dsize=(75, 75), interpolation=cv2.INTER_CUBIC))/255.
24
 
25
- img_reshape = img[np.newaxis,...]
26
 
27
  st.write(img_reshape.shape)
28
 
 
22
  img = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
23
  #img_resize = (cv2.resize(img, dsize=(75, 75), interpolation=cv2.INTER_CUBIC))/255.
24
 
25
+ img_reshape = np.reshape(img,(1,224,224,3))
26
 
27
  st.write(img_reshape.shape)
28