AADalhat commited on
Commit
a6b9724
·
verified ·
1 Parent(s): 856fe25

Update app.py

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