my-gradio-app / modules /rules.json
Nguyen Trong Lap
Recreate history without binary blobs
eeb0f9c
{
"nutrition": {
"bmi_categories": {
"underweight": {"min": 0, "max": 18.5, "advice": "Tăng cân lành mạnh"},
"normal": {"min": 18.5, "max": 24.9, "advice": "Duy trì cân nặng"},
"overweight": {"min": 25, "max": 29.9, "advice": "Giảm cân nhẹ"},
"obese": {"min": 30, "max": 100, "advice": "Giảm cân cần thiết"}
},
"age_groups": {
"child": {"min": 0, "max": 12, "focus": "Phát triển"},
"teen": {"min": 13, "max": 19, "focus": "Tăng trưởng"},
"adult": {"min": 20, "max": 59, "focus": "Duy trì"},
"elderly": {"min": 60, "max": 120, "focus": "Sức khỏe"}
},
"goals": {
"weight_loss": "Giảm cân",
"weight_gain": "Tăng cân",
"muscle_building": "Xây dựng cơ bắp",
"maintenance": "Duy trì",
"health_improvement": "Cải thiện sức khỏe"
},
"gender_nutrition": {
"male": {"calorie_base": 2500, "protein_ratio": 0.25},
"female": {"calorie_base": 2000, "protein_ratio": 0.22}
},
"activity_levels": {
"low": {"multiplier": 1.2, "description": "Ít vận động"},
"moderate": {"multiplier": 1.4, "description": "Vận động vừa phải"},
"high": {"multiplier": 1.6, "description": "Vận động nhiều"}
},
"dietary_restrictions": [
"vegetarian", "vegan", "gluten_free", "dairy_free",
"low_carb", "keto", "halal", "kosher", "low_sodium"
],
"health_conditions": [
"diabetes", "hypertension", "heart_disease", "high_cholesterol",
"kidney_disease", "liver_disease", "food_allergies", "ibs"
]
},
"exercise": {
"fitness_levels": {
"beginner": {"description": "Mới bắt đầu", "duration": "15-30 phút"},
"intermediate": {"description": "Trung bình", "duration": "30-45 phút"},
"advanced": {"description": "Nâng cao", "duration": "45-60 phút"}
},
"exercise_types": {
"cardio": ["chạy bộ", "đi bộ", "đạp xe", "bơi lội"],
"strength": ["tập tạ", "bodyweight", "resistance_bands"],
"flexibility": ["yoga", "pilates", "stretching"],
"sports": ["bóng đá", "tennis", "bóng rổ", "cầu lông"]
}
}
}