The ChatGPT Food Nutrition Assistant is a user-friendly application designed to provide nutritional insights from food images. It leverages advanced language models to identify food items from images, calculate their nutritional content (e.g., calories, fat, protein), and help users track their daily caloric and nutritional intake. The app also includes user authentication and personalized caloric recommendations based on individual profiles.
- Image-based Food Identification: Analyze food items in images and retrieve detailed nutritional data.
- Personalized Nutritional Guidance: Tailored caloric recommendations based on user input (e.g., weight, height, activity level).
- Daily Summary: Track total calories, protein, and fat consumed.
- User Authentication: Secure user sign-up and login functionality.
- Python Environment: Python 3.8 or higher.
- MongoDB Database: A running MongoDB instance with connection details in
create_DB.py
. - Environment Variables: Set up an
.env
file with your OpenAI API key: OPENAI_API_KEY= - Dependencies: All required Python packages exist in the poetry environment
Follow these steps to set up and run the application:
git clone https://github.com/yourusername/ChatGPT_FoodNutritionData.git
cd ChatGPT_FoodNutritionData
Ensure you have Poetry installed on your system. If not, install it by following the Poetry Installation Guide.
Create a .env file in the root directory and add your OpenAI API key:
cd ChatGPT_FoodNutritionData
touch .env
OPENAI_API_KEY=<Your OpenAI API Key>
Launch the application using Streamlit:
poetry shell
streamlit run LLM_ObjectDetection.py