Update app.py
Browse files
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((
|
| 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)
|