Update app.py
Browse files
app.py
CHANGED
@@ -45,15 +45,20 @@ from tensorflow import keras
|
|
45 |
from PIL import Image
|
46 |
|
47 |
# Cell 1: Image Classification Model
|
48 |
-
model1 = from_pretrained_keras("rocioadlc/
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
'glass',
|
|
|
|
|
|
|
53 |
'metal',
|
54 |
'paper',
|
55 |
'plastic',
|
56 |
-
'
|
|
|
|
|
57 |
|
58 |
def predict_image(image_input):
|
59 |
# Resize the image to the size expected by the model
|
|
|
45 |
from PIL import Image
|
46 |
|
47 |
# Cell 1: Image Classification Model
|
48 |
+
model1 = from_pretrained_keras("rocioadlc/EfficientNetV2L_2")
|
49 |
+
|
50 |
+
class_labels = ['battery',
|
51 |
+
'biological',
|
52 |
+
'brown-glass',
|
53 |
+
'cardboard',
|
54 |
+
'clothes',
|
55 |
+
'green-glass',
|
56 |
'metal',
|
57 |
'paper',
|
58 |
'plastic',
|
59 |
+
'shoes',
|
60 |
+
'trash',
|
61 |
+
'white-glass']
|
62 |
|
63 |
def predict_image(image_input):
|
64 |
# Resize the image to the size expected by the model
|