Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,18 @@ from PIL import Image
|
|
50 |
model1 = from_pretrained_keras("rocioadlc/EfficientNetV2L")
|
51 |
|
52 |
# Define class labels
|
53 |
-
class_labels = ['
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
# Function to predict image label and score
|
56 |
def predict_image(input):
|
|
|
50 |
model1 = from_pretrained_keras("rocioadlc/EfficientNetV2L")
|
51 |
|
52 |
# Define class labels
|
53 |
+
class_labels = ['battery',
|
54 |
+
'biological',
|
55 |
+
'brown-glass',
|
56 |
+
'cardboard',
|
57 |
+
'clothes',
|
58 |
+
'green-glass',
|
59 |
+
'metal',
|
60 |
+
'paper',
|
61 |
+
'plastic',
|
62 |
+
'shoes',
|
63 |
+
'trash',
|
64 |
+
'white-glass']
|
65 |
|
66 |
# Function to predict image label and score
|
67 |
def predict_image(input):
|