Spaces:
Build error
Build error
Update app.py
Browse files
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 =
|
| 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 |
|