You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-1Lines changed: 28 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ We developed this exhibit to create an interactive serverless application using
20
20
## Features overview
21
21
22
22
-**Personalized product information**: Curious about what is in a product and if it is good for you?
23
-
Just scan the barcode with the app for an explained list of ingredients/alergens and a personalized summary based on your preferences.
23
+
Just scan the barcode with the app for an explained list of ingredients/allergens and a personalized summary based on your preferences, health goals, and dietary restrictions. The app provides direct allergen detection and quantitative nutritional analysis using data from Open Food Facts.
24
24
25
25
-**Personalized recipe generator**: Capture a photo of the ingredients in your fridge, and the app will generate recipes based on your preferences using those ingredients.
26
26
@@ -61,6 +61,8 @@ The architecture of the application can be split in 4 blocks:
61
61
#### Product Management:
62
62
63
63
-**Implementation**: Using AWS Lambda for server-side logic and a database from [Open Food Facts](https://fr.openfoodfacts.org/) accessed through APIs.
64
+
-**Data Integration**: The app retrieves allergen tags and nutritional data (calories, sugars, fats, proteins, etc.) from Open Food Facts API for accurate, data-driven recommendations.
65
+
-**Safety Features**: Direct allergen detection from API data ensures reliable allergen warnings without relying solely on ingredient text parsing.
64
66
65
67
#### Product Summary and Generative Recipe:
66
68
@@ -223,6 +225,31 @@ The output format is a Markdown file to faciliate the display of the recipe on t
223
225
224
226
-**Solution**: The same prompt is utilized, but the LLM is instructed to generate the output in a specific language, catering to the user's language preference (English/French).
225
227
228
+
**Direct Allergen Detection and Nutritional Analysis**
229
+
230
+
-**Challenge**: Ensuring accurate allergen warnings and providing quantitative nutritional recommendations based on user health goals.
231
+
232
+
-**Solution**: Integrated Open Food Facts API to retrieve `allergens_tags` and `nutriments` fields. The app filters key nutritional data (calories, sugars, fats, proteins, salt, fiber) and stores them in DynamoDB. Product summaries now include:
233
+
- Direct allergen detection with prominent warnings
234
+
- Specific nutritional values (e.g., "539 kcal/100g", "56.3g sugars")
235
+
- Health goal-specific recommendations (weight loss, muscle gain, etc.)
You are a nutrition expert. I will give you a nutritional list of a product, as sold per 100 g / 100 ml.
27
-
What, in your opinion, is the most unhealthy component? You must imagine the quantity of the most unhealthy component in terms of the quotient so that I realize how bad it is.
28
-
Respond in the form of a prompt in English, which will be used to generate an image in English. Respond only with the prompt.
27
+
What, in your opinion, is the most notable nutritional characteristic? Create a visual representation using actual food items or ingredients.
28
+
Respond in the form of a prompt in English for image generation. The prompt should describe a clean, professional food photography scene WITHOUT any text, labels, or words visible in the image.
A jar of chocolate hazelnut spread next to 14 cubes of sugar labeled "diabetes danger".
44
+
A jar of chocolate hazelnut spread surrounded by sugar cubes and hazelnuts on a white background, professional food photography, no text or labels visible.
0 commit comments