Update app.py
Browse files
app.py
CHANGED
|
@@ -6,10 +6,10 @@ from PIL import Image
|
|
| 6 |
from keras import layers
|
| 7 |
|
| 8 |
# Load your trained Xception model
|
| 9 |
-
model = tf.keras.models.load_model("xception-
|
| 10 |
|
| 11 |
# Define the labels for your classification (example: if you have 3 classes)
|
| 12 |
-
class_labels = ['
|
| 13 |
|
| 14 |
def classify_image(img):
|
| 15 |
# Preprocess the image to fit the model input shape
|
|
|
|
| 6 |
from keras import layers
|
| 7 |
|
| 8 |
# Load your trained Xception model
|
| 9 |
+
model = tf.keras.models.load_model("xception-head.h5")
|
| 10 |
|
| 11 |
# Define the labels for your classification (example: if you have 3 classes)
|
| 12 |
+
class_labels = ['1', '2', '3','4','5','6'] # Replace with your actual class names
|
| 13 |
|
| 14 |
def classify_image(img):
|
| 15 |
# Preprocess the image to fit the model input shape
|