Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,9 @@ from tensorflow.keras.preprocessing import image
|
|
| 5 |
import cv2
|
| 6 |
|
| 7 |
# Load the saved model
|
| 8 |
-
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# Set image dimensions
|
| 11 |
img_height, img_width = 150, 150 # Input size for the model
|
|
|
|
| 5 |
import cv2
|
| 6 |
|
| 7 |
# Load the saved model
|
| 8 |
+
model_path = "fahrnphi_exam_project.keras"
|
| 9 |
+
model = tf.keras.models.load_model(model_path)
|
| 10 |
+
|
| 11 |
|
| 12 |
# Set image dimensions
|
| 13 |
img_height, img_width = 150, 150 # Input size for the model
|