Update src/streamlit_app.py
Browse files- src/streamlit_app.py +27 -13
src/streamlit_app.py
CHANGED
|
@@ -125,26 +125,40 @@ if st.button(" Submit Profile"):
|
|
| 125 |
|
| 126 |
prompt = f"""
|
| 127 |
|
|
|
|
| 128 |
You are a certified professional fitness trainer.
|
| 129 |
|
| 130 |
-
|
| 131 |
|
| 132 |
-
User
|
| 133 |
-
|
| 134 |
- Gender: {gender}
|
| 135 |
-
|
| 136 |
- BMI: {bmi:.2f} ({bmi_status})
|
| 137 |
-
|
| 138 |
- Goal: {goal}
|
| 139 |
-
|
| 140 |
- Fitness Level: {fitness_level}
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
"""
|
| 149 |
|
| 150 |
with st.spinner("Generating your AI workout plan..."):
|
|
|
|
| 125 |
|
| 126 |
prompt = f"""
|
| 127 |
|
| 128 |
+
prompt = f"""
|
| 129 |
You are a certified professional fitness trainer.
|
| 130 |
|
| 131 |
+
Generate a structured 5-day workout plan based on the following user profile.
|
| 132 |
|
| 133 |
+
User Profile:
|
|
|
|
| 134 |
- Gender: {gender}
|
|
|
|
| 135 |
- BMI: {bmi:.2f} ({bmi_status})
|
|
|
|
| 136 |
- Goal: {goal}
|
|
|
|
| 137 |
- Fitness Level: {fitness_level}
|
| 138 |
+
- Available Equipment: {equipment_list}
|
| 139 |
+
|
| 140 |
+
Instructions:
|
| 141 |
+
1. Divide the plan clearly into Day 1, Day 2, Day 3, Day 4, and Day 5.
|
| 142 |
+
2. Under each day, list 4-6 exercises.
|
| 143 |
+
3. For each exercise include:
|
| 144 |
+
- Exercise Name
|
| 145 |
+
- Sets
|
| 146 |
+
- Reps
|
| 147 |
+
- Rest Time
|
| 148 |
+
4. Keep exercises appropriate for the user’s fitness level.
|
| 149 |
+
5. Avoid medical or dietary advice.
|
| 150 |
+
6. Keep the output clean, structured, and easy to read.
|
| 151 |
+
7. Do NOT include explanations outside the workout plan.
|
| 152 |
+
|
| 153 |
+
Format Example:
|
| 154 |
+
|
| 155 |
+
Day 1: Upper Body Strength
|
| 156 |
+
1. Push-Ups
|
| 157 |
+
Sets: 3
|
| 158 |
+
Reps: 12
|
| 159 |
+
Rest: 60 seconds
|
| 160 |
+
|
| 161 |
+
Only return the workout plan.
|
| 162 |
"""
|
| 163 |
|
| 164 |
with st.spinner("Generating your AI workout plan..."):
|