ak0601 commited on
Commit
3204e1a
·
1 Parent(s): 3059806

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ model = tf.keras.models.load_model('dogcat_model_bak.h5')
9
 
10
  def classify_image(input_image):
11
  # Load and preprocess the image
12
- img1 = image.load_img(input_image.name, target_size=(64, 64))
13
- img2 = image.load_img(input_image.name)
14
  img = image.img_to_array(img1)
15
  img = img / 255.0
16
  img = np.expand_dims(img, axis=0)
 
9
 
10
  def classify_image(input_image):
11
  # Load and preprocess the image
12
+ img1 = image.load_img(input_image, target_size=(64, 64))
13
+ img2 = image.load_img(input_image)
14
  img = image.img_to_array(img1)
15
  img = img / 255.0
16
  img = np.expand_dims(img, axis=0)