Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,10 @@ import numpy as np
|
|
| 4 |
from PIL import Image
|
| 5 |
from io import BytesIO
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Load your trained model
|
| 8 |
model = tf.keras.models.load_model("best_model_weights.h5") # Replace with the path to your saved model
|
| 9 |
|
|
|
|
| 4 |
from PIL import Image
|
| 5 |
from io import BytesIO
|
| 6 |
|
| 7 |
+
# Define image dimensions
|
| 8 |
+
img_height = 224 # Replace with the actual height of your images
|
| 9 |
+
img_width = 224 # Replace with the actual width of your images
|
| 10 |
+
|
| 11 |
# Load your trained model
|
| 12 |
model = tf.keras.models.load_model("best_model_weights.h5") # Replace with the path to your saved model
|
| 13 |
|