Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI RECIPE GENERATOR

AI Recipe Generator is a Streamlit-based web application that generates customized recipes using artificial intelligence. Users provide ingredients or preferences, and the application returns AI-generated recipe suggestions.

GitHub Repository: https://github.com/vaishnav-reddy/Ai-Recipe-Generator

PROJECT OVERVIEW

The AI Recipe Generator allows users to:

  • Enter ingredients or food preferences
  • Generate AI-powered recipes
  • View structured recipe outputs
  • Use the app through a simple Streamlit interface

This project demonstrates real-world usage of AI with Python and Streamlit.

REPOSITORY STRUCTURE

Ai-Recipe-Generator/
├── .streamlit/
│   └── secrets.toml
├── main.py
├── requirements.txt
├── .gitignore
└── README.md

The entire application logic and UI are implemented inside main.py.

FEATURES

  • AI-generated recipes
  • Simple and interactive Streamlit UI
  • Fast response time
  • Deployed on Streamlit Cloud
  • Easy to extend with more AI features

TECH STACK

Frontend: Streamlit Backend: Python AI Logic: AI API (Gemini / OpenAI or similar) Deployment: Streamlit Cloud

API KEY REQUIREMENT (MANDATORY)

This project WILL NOT WORK without an API key.

You must create the following file when running locally:

.streamlit/secrets.toml

Inside that file, add:

api_key = "YOUR_API_KEY_HERE"

If the API key is missing, the recipe generation will fail.

LOCAL SETUP AND INSTALLATION

Step 1: Clone the repository

git clone https://github.com/vaishnav-reddy/Ai-Recipe-Generator.git cd Ai-Recipe-Generator

Step 2: Install dependencies

pip install -r requirements.txt

Step 3: Run the application

streamlit run main.py

The app will open at: http://localhost:8501

HOW TO USE THE APPLICATION

  1. Open the AI Recipe Generator app
  2. Enter ingredients or food preferences
  3. Click the generate button
  4. View the AI-generated recipe output

DEPLOYMENT (STREAMLIT CLOUD)

  1. Push the repository to GitHub
  2. Go to https://share.streamlit.io
  3. Connect your GitHub repository
  4. Open Settings → Secrets
  5. Add the API key:

api_key = "YOUR_API_KEY_HERE"

  1. Deploy the application

REQUIREMENTS

The requirements.txt file typically includes:

  • streamlit
  • requests
  • python-dotenv (Add or remove based on your implementation)

FUTURE ENHANCEMENTS

  • Add nutritional information
  • Save generated recipes
  • User login and recipe history
  • Dietary preference filters
  • Multi-language support

LICENSE

This project is open-source and intended for learning and development purposes.

AUTHOR

Vaishnav Reddy GitHub: https://github.com/vaishnav-reddy

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages