End-to-End Nutritionist Generative AI Doctor using Google Gemini Pro Vision Large Image Models.
Live App link : NutriGenie
NutriGenie-Ai is an application that leverages Google Gemini Pro Vision Large Image Models to provide nutritional analysis of your meals. The AI-powered nutritionist analyzes images of your meals, calculates total calories, provides details on each food item's calorie intake, and offers a nutritional breakdown.
- Streamlit: Frontend framework for creating web applications with Python.
- Google Gemini Pro Vision: Large image models for advanced vision and text solutions.
- Pillow (PIL): Python Imaging Library to handle images.
- NumPy: Library for numerical operations.
- TensorFlow: Open-source machine learning framework.
- Streamlit Webrtc: Streamlit extension for real-time video processing.
-
Clone the repository:
git clone https://github.com/HimanshuMohanty-Git24/NutriGenie-Ai.git
-
Navigate to the project directory:
cd NutriGenie-Ai
-
Install dependencies:
pip install -r requirements.txt
-
Obtain Google Gemini Pro Vision API Key:
- Visit the Google Makersuite.
- Create a new project or select an existing one.
- Create API credentials (API key) and use it in project.
-
Set up environment variables:
- Create a
.env
file in the project root. - Add your Google API key to the
.env
file:GOOGLE_API_KEY=your_api_key_here
- Create a
-
Run the app:
streamlit run app.py
-
Access the app: Open your web browser and go to http://localhost:8501.
- Choose the upload method: either "Upload Photo" or "Take a Picture."
- Upload an image of your meal or capture one using the camera.
- Click "Analyse my Meal" to get a detailed nutritional analysis.
Ensure that you use your own Google Gemini Pro Vision API key for accessing the advanced image models. Protect your API key and avoid sharing it publicly.
Feel free to contribute, report issues, or suggest improvements!