Transform your available ingredients into delicious and creative recipes with the Recipe Generator! Whether you're a seasoned chef or a beginner in the kitchen, this Flask-based web application helps you discover new dishes based on what you have on hand.
- Ingredient Input: Manually enter a list of ingredients to generate matching recipes.
- Image Upload: Upload a photo of your ingredients, and the app recognizes them to suggest recipes.
- Nutritional Information: Get detailed nutritional breakdowns for each recipe.
-
Clone the Repository
git clone https://github.com/verneylmavt/recipe-generator.git cd recipe-generator
-
Create a Virtual Environment
It's good practice to use a virtual environment to manage project dependencies.
python -m venv venv
-
Activate the Virtual Environment
-
On Windows:
venv\Scripts\activate
-
On Unix or MacOS:
source venv/bin/activate
-
-
Install Dependencies
pip install -r requirements.txt
-
Download NLP Models
The application uses NLTK and SpaCy for natural language processing. Download the required models:
python seyup_nlp.py
-
Run the Application
flask run
The application should now be accessible at
http://127.0.0.1:5000/
.
-
Home Page
- Enter Ingredients: Type in the ingredients you have, separated by commas.
- Or Upload Image: Alternatively, upload an image containing your ingredients.
-
Generate Recipe
- Click on the "Generate Recipe" button.
- The app will process your input and display a recipe that matches your ingredients, including ingredients list, instructions, and nutritional information.
-
Navigate
- Use the "Back" button on the recipe page to generate another recipe.