Calories Advisor App uses Google's Gemini 1.5 Pro to analyze food images and estimate nutritional content. This app helps users understand the calorie content and nutritional value of their food based on uploaded images. It provides insights into ingredients, calorie estimates, and general dietary advice.
- Image Analysis: Upload food images to get insights on calorie content.
- Nutritional Breakdown: Receive details on calories, possible ingredients, and nutrient distribution (carbohydrates, fats, vitamins, etc.).
- Portion Size Input: Specify the portion size for more accurate estimates.
- Dietary Advice: Get tips on achieving a balanced diet and improving overall health.
- Streamlit: For building the user interface.
- Google Gemini 1.5 Pro: For analyzing and generating content from images.
- Pillow (PIL): For image processing.
- Python Libraries:
dotenv
,os
,io
,base64
.
- Clone the repository:
git clone https://github.com/shruti23-ui/Calories-Advisor-App.git
- Navigate to the project directory:
cd Calories-Advisor-App
- Set up a virtual environment:
python -m venv venv
- Activate the virtual environment:
venv\Scripts\activate
- Install the required packages:
pip install -r requirements.txt
- Make sure you have a
.env
file with yourGOOGLE_API_KEY
set. - Run the Streamlit app:
streamlit run app.py
- Open the provided URL in your browser.
- Upload a food image and enter the portion size to get nutritional insights.
Feel free to contribute by opening issues or submitting pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.