Amrutha04 commited on
Commit
f995195
·
verified ·
1 Parent(s): 3634d75

Update prompt_builder.py

Browse files
Files changed (1) hide show
  1. prompt_builder.py +6 -5
prompt_builder.py CHANGED
@@ -21,10 +21,11 @@ def build_prompt(name, gender, height, weight, goal, fitness_level, equipment):
21
  Create a 5-day workout plan for {name}.
22
  Gender: {gender}, BMI: {bmi:.2f} ({bmi_status}), Goal: {goal}, Level: {fitness_level}, Equipment: {equipment_list}.
23
 
24
- Instructions:
25
- 1. Divide into Day 1, Day 2, Day 3, Day 4, and Day 5.
26
- 2. For each day, list 4-6 specific exercises with Sets, Reps, and Rest.
27
- 3. Day 3 must be a Rest/Recovery Day.
28
- 4. Output ONLY the workout plan text. Do not include conversational filler."""
 
29
 
30
  return prompt, bmi, bmi_status, status_color
 
21
  Create a 5-day workout plan for {name}.
22
  Gender: {gender}, BMI: {bmi:.2f} ({bmi_status}), Goal: {goal}, Level: {fitness_level}, Equipment: {equipment_list}.
23
 
24
+ Requirements:
25
+ 1. Label days strictly as Day 1, Day 2, Day 3, Day 4, and Day 5.
26
+ 2. For each exercise, provide: Name, Sets, Reps, and Rest.
27
+ 3. Be concise. Avoid large gaps between lines.
28
+ 4. Day 3 must be Rest.
29
+ 5. Only output the routine."""
30
 
31
  return prompt, bmi, bmi_status, status_color