Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from PIL import Image
|
|
6 |
import numpy as np
|
7 |
|
8 |
# Load the pre-trained ResNet152 model
|
9 |
-
MODEL_PATH = "resnet152-image-classifier" # Directory where the model is saved
|
10 |
model = tf.keras.models.load_model(MODEL_PATH)
|
11 |
|
12 |
def predict_image(image):
|
|
|
6 |
import numpy as np
|
7 |
|
8 |
# Load the pre-trained ResNet152 model
|
9 |
+
MODEL_PATH = "resnet152-image-classifier.h5" # Directory where the model is saved
|
10 |
model = tf.keras.models.load_model(MODEL_PATH)
|
11 |
|
12 |
def predict_image(image):
|