Analyze the provided image of a meal and provide a comprehensive nutritional analysis.
Nutritionist-LLM is a Streamlit application that leverages Google's GenAI to analyze images of meals and provide detailed nutritional information. The application identifies food items in the image, breaks down their nutritional content, and offers health ratings and recommendations for improvement.
- Food Item Identification: Detects and lists individual food items present in the image.
- Nutritional Breakdown: Provides detailed nutritional information for each food item, including calories, fat, energy, carbohydrates, protein, and other key ingredients.
- Total Calories and Macronutrient Analysis: Calculates and reports the total calories and macronutrient breakdown for the entire meal.
- Health Rating: Assigns a health rating on a scale of 1-10 based on nutrient balance, calorie density, and essential vitamins and minerals.
- Recommendations for Improvement: Suggests specific replacements or additions to improve the meal's nutritional quality and health rating.
This project is initialized using pdm
. To learn more about pdm
, please refer to the pdm documentation.
-
Install
pdm
:pip install pdm
-
Initialize the project:
pdm init
-
Install the required dependencies:
pdm install
-
Create a .env file in the root of your repository and include the following:
GOOGLE_API_KEY=<YOUR_API_KEY>
To run the Streamlit application, use the following command:
pdm run streamlit run app.py