azlan8289 commited on
Commit
e60d9ec
·
verified ·
1 Parent(s): f5e1970

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def load_model():
10
  model = load_model()
11
 
12
  def predict(image):
13
- image = image.reshape((-1, 300, 300, 3)) # Ensure image has the correct shape
14
  preds = model.predict(image)[0] # Assuming single image prediction
15
  labels = ['Bean', 'Bitter_Gourd', 'Bottle_Gourd', 'Brinjal', 'Broccoli',
16
  'Cabbage', 'Capsicum', 'Carrot', 'Cauliflower', 'Cucumber',
 
10
  model = load_model()
11
 
12
  def predict(image):
13
+ image = image.reshape((-1, 224, 224, 3)) # Ensure image has the correct shape
14
  preds = model.predict(image)[0] # Assuming single image prediction
15
  labels = ['Bean', 'Bitter_Gourd', 'Bottle_Gourd', 'Brinjal', 'Broccoli',
16
  'Cabbage', 'Capsicum', 'Carrot', 'Cauliflower', 'Cucumber',