Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- 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 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
Day 1:
|
| 166 |
-
1.
|
| 167 |
-
Sets:
|
| 168 |
-
Reps:
|
| 169 |
-
Rest:
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
|
|
|
|
|
|
| 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..."):
|