AADalhat commited on
Commit
80f0604
·
verified ·
1 Parent(s): a2e3135

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def classify_food(image, conditions, language):
87
  return "⚠️ Please select at least one health condition.", None, None, None
88
 
89
  # Preprocess image
90
- image = image.convert("RGB").resize((224, 224))
91
  img = tf.keras.preprocessing.image.img_to_array(image)
92
  img = efficientnet_preprocess(img)
93
  img = np.expand_dims(img, axis=0)
 
87
  return "⚠️ Please select at least one health condition.", None, None, None
88
 
89
  # Preprocess image
90
+ image = image.convert("RGB").resize((225, 225))
91
  img = tf.keras.preprocessing.image.img_to_array(image)
92
  img = efficientnet_preprocess(img)
93
  img = np.expand_dims(img, axis=0)