| from PIL import Image | |
| def preprocess_image(image): | |
| """ | |
| Preprocess the input image for food recognition. | |
| """ | |
| image = image.resize((224, 224)) # Resize for model compatibility | |
| return image | |
| from PIL import Image | |
| def preprocess_image(image): | |
| """ | |
| Preprocess the input image for food recognition. | |
| """ | |
| image = image.resize((224, 224)) # Resize for model compatibility | |
| return image | |