rocioadlc commited on
Commit
cbaad20
Β·
verified Β·
1 Parent(s): f5ba712

Update app.py

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