Update app.py
Browse files
app.py
CHANGED
|
@@ -8,8 +8,8 @@ from keras import layers
|
|
| 8 |
# Load your trained Xception model
|
| 9 |
model = tf.keras.models.load_model("xception-head.h5")
|
| 10 |
|
| 11 |
-
# Define the labels for your classification
|
| 12 |
-
class_labels = ['
|
| 13 |
|
| 14 |
def classify_image(img):
|
| 15 |
# Preprocess the image to fit the model input shape
|
|
|
|
| 8 |
# Load your trained Xception model
|
| 9 |
model = tf.keras.models.load_model("xception-head.h5")
|
| 10 |
|
| 11 |
+
# Define the labels for your classification
|
| 12 |
+
class_labels = ['fresh', 'early decay', 'advanced decay','skeletonized'] # Replace with your actual class names
|
| 13 |
|
| 14 |
def classify_image(img):
|
| 15 |
# Preprocess the image to fit the model input shape
|