SmartFood is an intelligent food recommendation system that uses AI to suggest personalized food items based on your mood, meal time, and cravings. The system combines the power of Google's Gemini AI with semantic search to provide accurate and contextually relevant food recommendations.
- 🤖 AI-powered food recommendations using Google's Gemini AI
- 🍽️ Diverse food categories including:
- South Indian cuisine
- North Indian cuisine
- Chinese cuisine
- Fast Food
- Drinks and Beverages
- Snacks
- 🎯 Smart matching based on:
- Mood
- Meal time
- Food preferences
- Ingredients
- 🔍 Semantic search using sentence transformers
- 🏷️ Detailed food information including:
- Ingredients
- Region
- Meal time
- Mood tags
- Python 3.x
- Django
- Google Gemini AI
- Sentence Transformers
- scikit-learn
- NumPy
- Clone the repository:
git clone https://github.com/chaitanyagarg50/Food-AI.git
cd smartfood- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Create a
.envfile in the project root and add your Gemini API key:
GEMINI_API_KEY=your_gemini_api_key_here
- Run migrations:
python manage.py makemigrations
python manage.py migrate- Populate the database with food items:
python manage.py populate_food_items- Start the development server:
python manage.py runserver- Open your web browser and navigate to
http://localhost:8000 - Enter your current mood, meal time, or food craving in the input field
- The system will analyze your input and recommend the most suitable food items
- Get detailed information about the recommended food, including ingredients and mood tags
- "I'm feeling happy and want something spicy for lunch"
- "Need something light and healthy for breakfast"
- "Craving something sweet and refreshing"
- "Want comfort food for dinner"
- "Looking for a quick snack"
smartfood/
├── recommender/
│ ├── management/
│ │ └── commands/
│ │ └── populate_food_items.py
│ │
│ ├── models.py
│ ├── utils.py
│ └── views.py
├── smartfood/
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── .env
├── manage.py
└── requirements.txt
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature-name - Make your changes
- Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin feature/your-feature-name - Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini AI for providing the AI capabilities
- Sentence Transformers for semantic search functionality
- Django framework for the web application structure
For any questions or suggestions, please open an issue in the GitHub repository.