ak0601 commited on
Commit
f4b14bc
·
1 Parent(s): bb7c351

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from PIL import Image as PIL_Image
8
  model = tf.keras.models.load_model('dogcat_model_bak.h5')
9
 
10
  def classify_image(input_image):
11
- pil_img = PIL_Image.fromarray(input_image.astype('uint8'), 'RGB')
12
  # Preprocess the image
13
  img1 = pil_img.resize((64, 64))
14
  img2 = pil_img
 
8
  model = tf.keras.models.load_model('dogcat_model_bak.h5')
9
 
10
  def classify_image(input_image):
11
+ pil_img = PIL_Image.fromarray(input_image, 'RGB')
12
  # Preprocess the image
13
  img1 = pil_img.resize((64, 64))
14
  img2 = pil_img