Update app.py
Browse files
app.py
CHANGED
@@ -47,12 +47,8 @@ from PIL import Image
|
|
47 |
# Cell 1: Image Classification Model
|
48 |
model1 = from_pretrained_keras("rocioadlc/Alejandra2")
|
49 |
|
50 |
-
|
51 |
-
'cardboard',
|
52 |
-
'metal',
|
53 |
-
'trash',
|
54 |
-
'paper',
|
55 |
-
'glass']
|
56 |
|
57 |
def predict_image(image_input):
|
58 |
# Resize the image to the size expected by the model
|
|
|
47 |
# Cell 1: Image Classification Model
|
48 |
model1 = from_pretrained_keras("rocioadlc/Alejandra2")
|
49 |
|
50 |
+
|
51 |
+
class_labels = ['cardboard', 'glass', 'metal', 'paper', 'plastic', 'trash']
|
|
|
|
|
|
|
|
|
52 |
|
53 |
def predict_image(image_input):
|
54 |
# Resize the image to the size expected by the model
|