anunay999 commited on
Commit
f2fbc84
·
1 Parent(s): 4a8de15

control layout

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. meal_planner_api/create_meal_plan.py +2 -0
app.py CHANGED
@@ -16,8 +16,8 @@ with gr.Blocks() as interface:
16
  with gr.Column(scale=1, min_width=600):
17
  age = gr.Number(label='age')
18
  gender = gr.Dropdown(label='gender', choices=['male', 'female'])
19
- cur_w = gr.Number(label='current weight')
20
- des_w = gr.Number(label='desired Weight')
21
  goal = gr.Dropdown(label='goal', choices=['weight loss', 'muscle gain', 'maintenance', 'healthy'])
22
  rest = gr.Textbox(label='restrictions', lines=5,
23
  placeholder="Enter your restrictions (dietary"
 
16
  with gr.Column(scale=1, min_width=600):
17
  age = gr.Number(label='age')
18
  gender = gr.Dropdown(label='gender', choices=['male', 'female'])
19
+ cur_w = gr.Number(label='current weight in KG')
20
+ des_w = gr.Number(label='desired weight in KG')
21
  goal = gr.Dropdown(label='goal', choices=['weight loss', 'muscle gain', 'maintenance', 'healthy'])
22
  rest = gr.Textbox(label='restrictions', lines=5,
23
  placeholder="Enter your restrictions (dietary"
meal_planner_api/create_meal_plan.py CHANGED
@@ -10,6 +10,8 @@ def generate(age, gender,current_weight, desired_weight, goal, restrictions, pre
10
 
11
  **Food Preferences:**
12
  {preferences}
 
 
13
 
14
  **Additional Considerations:**
15
  - Prioritize nutrient-dense, wholesome foods.
 
10
 
11
  **Food Preferences:**
12
  {preferences}
13
+
14
+ Also provide macros for each meal and quantity
15
 
16
  **Additional Considerations:**
17
  - Prioritize nutrient-dense, wholesome foods.