Update app.py
Browse files
app.py
CHANGED
@@ -45,21 +45,15 @@ 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 |
-
class_labels = ['
|
52 |
-
'
|
53 |
-
'brown-glass',
|
54 |
-
'cardboard',
|
55 |
-
'clothes',
|
56 |
-
'green-glass',
|
57 |
'metal',
|
58 |
-
'paper
|
59 |
'plastic',
|
60 |
-
'
|
61 |
-
'trash',
|
62 |
-
'white-glass']
|
63 |
|
64 |
def predict_image(image_input):
|
65 |
# 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/alejandra3")
|
49 |
|
50 |
|
51 |
+
class_labels = ['cardboard',
|
52 |
+
'glass',
|
|
|
|
|
|
|
|
|
53 |
'metal',
|
54 |
+
'paper,
|
55 |
'plastic',
|
56 |
+
'trash']
|
|
|
|
|
57 |
|
58 |
def predict_image(image_input):
|
59 |
# Resize the image to the size expected by the model
|