azlan8289 commited on
Commit
6598fba
·
verified ·
1 Parent(s): a7b8145

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ model = tf.keras.models.load_model(model_path)
7
 
8
  # Assuming your model expects images of size 224x224
9
  def preprocess_image(image):
10
- image = tf.image.resize(image, [224, 224])
11
  image = image / 255.0 # Normalize if your model expects this
12
  return image.numpy() # Return as numpy array
13
 
 
7
 
8
  # Assuming your model expects images of size 224x224
9
  def preprocess_image(image):
10
+ image = image.reshape(image, [300, 300])
11
  image = image / 255.0 # Normalize if your model expects this
12
  return image.numpy() # Return as numpy array
13