sowbaranika13 commited on
Commit
461af4b
·
verified ·
1 Parent(s): 290de9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -17,9 +17,7 @@ labels = {
17
  }
18
 
19
 
20
- def preprocess_image(image_data):
21
- print(type(image_data))
22
- image = Image.open(BytesIO(image_data))
23
  img = image.resize((224, 224))
24
  img_array = img_to_array(img)
25
  img_array = np.expand_dims(img_array, axis=0)
 
17
  }
18
 
19
 
20
+ def preprocess_image(image):
 
 
21
  img = image.resize((224, 224))
22
  img_array = img_to_array(img)
23
  img_array = np.expand_dims(img_array, axis=0)