annanau commited on
Commit
68c25a0
·
verified ·
1 Parent(s): 92aad88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-070523.h5")
10
 
11
  # Define the labels for your classification (example: if you have 3 classes)
12
- class_labels = ['0', '1', '2', '3'] # Replace with your actual class names
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