rocioadlc commited on
Commit
1f19135
Β·
verified Β·
1 Parent(s): dcc5b57

Update app.py

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