Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nutritional Insights 🍽️

AI-Powered Food Analysis & Recipe Generation

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.

Features

  • 🔍 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

Technologies Used

  • Python 3.8 +
  • Streamlit
  • Google Generative AI (Gemini 1.5 Flash)
  • Pillow (PIL)
  • python-dotenv

Installation

  1. 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
  1. Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install the required packages:
pip install -r requirements.txt
  1. Create a .env file in the project directory and add your Google API key:
GOOGLE_API_KEY=your_google_api_key_here
  1. Run the application:
streamlit run app.py

How to Use

Food Analysis

  1. Navigate to the "Food Analysis" tab
  2. Upload an image of your meal
  3. Add any special instructions (optional)
  4. Click "Analyze Meal"
  5. View detailed nutritional breakdown including calories, macronutrients, and health insights

Recipe Generator

  1. Navigate to the "Recipe Generator" tab
  2. Enter ingredients you have available (comma-separated)
  3. Select meal type, cooking time, complexity, and servings
  4. Click "Generate Healthy Recipe"
  5. View the generated recipe with ingredients, instructions, nutritional information, and chef's tips

Nutrition Facts

  1. Navigate to the "Nutrition Facts" tab
  2. Search for common foods to see their nutritional information
  3. Browse educational content about macronutrients

Getting a Google Gemini API Key

  1. Visit Google AI Studio
  2. Create or sign in to your Google account
  3. Navigate to the API section
  4. Create a new API key
  5. Copy the key and add it to your .env file

Future Enhancements

  • 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

Disclaimer

Nutritional estimates provided by this application are approximations and should not replace professional dietary advice.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Authors and Contributors

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages