An AI-powered ingredient analyzer that helps you understand what's in your food. Simply take a photo or upload an image of an ingredients list, and Snappy Gredients will analyze it for you!
- 📸 Take photos or upload images of ingredient lists
- 🔍 Extract text using OCR technology
- 🤖 Analyze ingredients using Google's Gemini AI
⚠️ Identify potential allergens- 🧪 Highlight additives and preservatives
- 💡 Provide health-related insights
- 📱 User-friendly interface built with Streamlit
- Python 3.x
- Streamlit
- Google Gemini AI
- OCR Space API
- PIL (Python Imaging Library)
- Requests
- Clone the repository:
git clone [https://github.com/yourusername/snappy-gredients.git](https://github.com/divinesaun/snappy-gredients.git)
cd snappy-gredients
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
Create a
.env
file in the root directory with:
GOOGLE_API_KEY=your_google_api_key
OCR_SPACE_API_KEY=your_ocr_space_api_key
- Run the application:
streamlit run main.py
- Google API Key: Get it from Google AI Studio
- OCR Space API Key: Get it from OCR Space
Contributions are welcome! Please feel free to submit a Pull Request.
This tool is for informational purposes only. Always consult healthcare professionals for medical advice. The analysis provided should not be considered as medical or dietary advice.
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by Black Mirror Season 7 Episode 2
- Built with Streamlit's amazing framework
- Powered by Google's Gemini AI