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
- Open the AI Recipe Generator app
- Enter ingredients or food preferences
- Click the generate button
- View the AI-generated recipe output
DEPLOYMENT (STREAMLIT CLOUD)
- Push the repository to GitHub
- Go to https://share.streamlit.io
- Connect your GitHub repository
- Open Settings → Secrets
- Add the API key:
api_key = "YOUR_API_KEY_HERE"
- 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