Springboardmen commited on
Commit
ad523fb
·
verified ·
1 Parent(s): e14cd6a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +26 -24
src/streamlit_app.py CHANGED
@@ -149,30 +149,32 @@ if st.button(" Submit Profile"):
149
 
150
  prompt = f"""
151
  You are a certified professional fitness trainer.
152
- Generate a structured 5-day workout plan based on the following user profile.
153
- User Profile:
154
- - Gender: {gender}
155
- - BMI: {bmi:.2f} ({bmi_status})
156
- - Goal: {goal}
157
- - Fitness Level: {fitness_level}
158
- - Available Equipment: {equipment_list}
159
- Instructions:
160
- - Divide into Day 1 to Day 5
161
- - Use EXACT format below
162
- - Do not change format
163
- - Do not add extra text
164
- Strict Format:
165
- Day 1: <Workout Focus>
166
- 1. <Exercise Name>
167
- Sets: <number>
168
- Reps: <range>
169
- Rest: <seconds>
170
- 2. <Exercise Name>
171
- Sets: <number>
172
- Reps: <range>
173
- Rest: <seconds>
174
- Repeat same structure for all 5 days.
175
- Only return the workout plan.
 
 
176
  """
177
 
178
  with st.spinner("Generating your AI workout plan..."):
 
149
 
150
  prompt = f"""
151
  You are a certified professional fitness trainer.
152
+
153
+ Generate a structured 5-day workout plan.
154
+
155
+ You MUST follow the format EXACTLY.
156
+ Do NOT add any extra text.
157
+ Do NOT add explanations.
158
+ Do NOT change spacing.
159
+ Do NOT remove indentation.
160
+
161
+ Return ONLY the workout plan.
162
+
163
+ Strict Format Example:
164
+
165
+ Day 1: Upper Body
166
+ 1. Push-Ups
167
+ Sets: 3
168
+ Reps: 10-12
169
+ Rest: 60
170
+
171
+ Now generate for:
172
+
173
+ Gender: {gender}
174
+ BMI: {bmi:.2f} ({bmi_status})
175
+ Goal: {goal}
176
+ Fitness Level: {fitness_level}
177
+ Equipment: {equipment_list}
178
  """
179
 
180
  with st.spinner("Generating your AI workout plan..."):