rocioadlc commited on
Commit
91b8238
Β·
verified Β·
1 Parent(s): 1e973c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -6
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/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
 
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