Welcome to Swef, your AI-powered smart kitchen assistant! Swef helps you decide what to cook based on the ingredients you have in your fridge. It considers your budget and suggests recipes accordingly. If you're missing any ingredients, it will list them for easy purchase. Say goodbye to decision fatigue and hello to seamless meal planning!
- Backend: Built with Flask, this is where the magic happens! The backend handles requests, fetches fridge items, and interacts with the AI/ML API for recipe suggestions.
- Frontend: The frontend is pretty basic without design, serving as a simple interface to display fridge items and allow users to select their budget.
- Fetch fridge items from a mock JSON database.
- Suggest recipes based on available ingredients and budget preferences.
- List missing ingredients for easy shopping.
This project could be an amazing feature to be added to quick commerce apps. Ideally, it should:
- Scan the fridge: Automatically detect items available in the fridge.
- Ask about budget: Inquire about the user's budget situation.
- Provide recipes: Suggest recipes based on the available ingredients and budget.
- Auto-order extra ingredients: After selecting a recipe, automatically order any extra ingredients needed, making it a smart feature for quick commerce projects.
- Python 3.6 or higher
- Flask
- Requests
- Python-dotenv
-
Clone the repository:
git clone https://github.com/V3669/Swef---AI-Assistant-Chef.git cd Swef
-
Install the required packages:
pip install Flask requests python-dotenv
-
Set up your environment variables in a
.env
file:AI_API_KEY=your_api_key_here AI_API_URL=https://api.openai.com/v1/chat/completions FLASK_SECRET_KEY=your_secret_key_here
-
Start the Flask server:
cd backend flask run
-
Open your web browser and navigate to:
http://127.0.0.1:5000/
Feel free to fork the repository and submit pull requests. We welcome contributions to improve the project!
This project is licensed under the MIT License - see the LICENSE file for details.
Happy cooking! 🍽️