Spaces:
Running
Running
File size: 897 Bytes
29db9d8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# prompts.py
json_structure = {
"meal": {
"ingredients": ["list of ingredients here"]
},
"response_format": {
"carbs": "numeric value in grams",
"fats": "numeric value in grams",
"proteins": "numeric value in grams",
"fibers": "numeric value in grams",
"feedback": "One-sentence feedback about the healthiness of the meal and suggestions for improvement"
}
}
def generate_health_feedback_prompt(ingredients):
return f"""
Given this list of ingredients: {ingredients}, estimate the macronutrient content and return only the values as a JSON object.
Specify the amount of carbs, protein, fat, and fiber in grams, and include a one-sentence feedback on the meal healthiness.
The response should strictly follow this JSON format: {json_structure}. Please respond with only the JSON object.
"""
|