Nutritional Insights is a Streamlit web application that uses Google's Gemini 1.5 Flash model to analyze food images, provide nutritional information, and generate healthy recipes based on available ingredients.
- 🔍 Food Analysis: Upload images of meals to get detailed nutritional breakdown
- 🥗 Recipe Generator: Create custom recipes based on ingredients you have
- 📊 Nutrition Facts: Access nutritional information for common foods
- Python 3.8 +
- Streamlit
- Google Generative AI (Gemini 1.5 Flash)
- Pillow (PIL)
- python-dotenv
- Clone this repository:
git clone https://github.com/mayuriphad/AI-Powered Food Analysis & Meal Planning Assistant.git
cd AI-Powered Food Analysis & Meal Planning Assistant- Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install the required packages:
pip install -r requirements.txt- Create a
.envfile in the project directory and add your Google API key:
GOOGLE_API_KEY=your_google_api_key_here
- Run the application:
streamlit run app.py- Navigate to the "Food Analysis" tab
- Upload an image of your meal
- Add any special instructions (optional)
- Click "Analyze Meal"
- View detailed nutritional breakdown including calories, macronutrients, and health insights
- Navigate to the "Recipe Generator" tab
- Enter ingredients you have available (comma-separated)
- Select meal type, cooking time, complexity, and servings
- Click "Generate Healthy Recipe"
- View the generated recipe with ingredients, instructions, nutritional information, and chef's tips
- Navigate to the "Nutrition Facts" tab
- Search for common foods to see their nutritional information
- Browse educational content about macronutrients
- Visit Google AI Studio
- Create or sign in to your Google account
- Navigate to the API section
- Create a new API key
- Copy the key and add it to your
.envfile
- Integration with a comprehensive nutritional database API
- Personalized meal planning recommendations
- Dietary restriction filtering (vegan, gluten-free, etc.)
- User accounts to save favorite recipes and track nutritional intake
- Mobile app version
Nutritional estimates provided by this application are approximations and should not replace professional dietary advice.
This project is licensed under the MIT License - see the LICENSE file for details.
- Mayuri - Author - [(https://github.com/mayuriphad)]
- Vijay - Co-Author - [(https://github.com/vjymisal0)]