Ingredients_Based_Recipe_Generator

Recipe Generator with Images, Feedback, and PDF Downloads

This web application takes a list of ingredients as input and generates 3 different recipe variations with matching images from Pexels API. Users can also provide feedback on recipes and download them as PDFs.

Features

Installation

  1. Clone this repository
  2. Install the required dependencies:
pip install -r requirements.txt

Usage

  1. Start the Flask server:
python app.py
  1. Open your browser and navigate to http://127.0.0.1:5000/
  2. Enter a comma-separated list of ingredients (e.g., “chicken, rice, tomatoes, onions”)
  3. Click “Generate Recipes” to get 3 recipe variations with matching images
  4. Click “Download Recipe PDF” to save any recipe as a PDF file
    • If PDF download doesn’t work, the button will change to “View & Print Recipe” to view the recipe in the browser
  5. Provide feedback on recipes using the feedback form

Project Structure

Dependencies

Credits