hitty commited on
Commit
1bb607a
·
1 Parent(s): 9e9f36d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ model_path = "./Vegetable/Vegetable.h5" # Replace with the actual path to your
15
  # Class names
16
  class_names = ['Bean', 'Bitter_Gourd', 'Bottle_Gourd', 'Brinjal', 'Broccoli,' 'Cabbage','Capsicum', 'Carrot', 'Cauliflower', 'Cucumber', 'Papaya', 'Potato', 'Pumpkin','Radish','Tomato',]
17
  # Create EffNetB2 model
18
- effnetb2, effnetb2_transforms = create_effnetb2_model(
19
  num_classes=15, # len(class_names) would also work
20
  )
21
  effnetb2.load_state_dict(
 
15
  # Class names
16
  class_names = ['Bean', 'Bitter_Gourd', 'Bottle_Gourd', 'Brinjal', 'Broccoli,' 'Cabbage','Capsicum', 'Carrot', 'Cauliflower', 'Cucumber', 'Papaya', 'Potato', 'Pumpkin','Radish','Tomato',]
17
  # Create EffNetB2 model
18
+ effnetb2= create_effnetb2_model(
19
  num_classes=15, # len(class_names) would also work
20
  )
21
  effnetb2.load_state_dict(