Update app.py
Browse files
app.py
CHANGED
@@ -47,18 +47,12 @@ from PIL import Image
|
|
47 |
# Cell 1: Image Classification Model
|
48 |
model1 = from_pretrained_keras("amt116/x1")
|
49 |
|
50 |
-
class_labels = ['
|
51 |
-
'biological',
|
52 |
-
'brown-glass',
|
53 |
'cardboard',
|
54 |
-
'clothes',
|
55 |
-
'green-glass',
|
56 |
'metal',
|
57 |
-
'paper',
|
58 |
-
'plastic',
|
59 |
-
'shoes',
|
60 |
'trash',
|
61 |
-
'
|
|
|
62 |
|
63 |
def predict_image(image_input):
|
64 |
# Resize the image to the size expected by the model
|
|
|
47 |
# Cell 1: Image Classification Model
|
48 |
model1 = from_pretrained_keras("amt116/x1")
|
49 |
|
50 |
+
class_labels = ['plastic',
|
|
|
|
|
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
|