Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,6 @@ st.title("Personalized 6-Month Fitness and Health Plan Generator")
|
|
| 8 |
|
| 9 |
# User inputs
|
| 10 |
st.subheader("About You")
|
| 11 |
-
name = st.text_input("Your Name", placeholder="Enter your name")
|
| 12 |
age = st.number_input("Your Age", min_value=12, max_value=100, step=1)
|
| 13 |
gender = st.selectbox("Your Gender", ["Female", "Male", "Prefer not to say"])
|
| 14 |
|
|
@@ -24,7 +23,7 @@ goal_timeframe = st.selectbox("Goal Timeframe", ["3 months", "6 months", "1 year
|
|
| 24 |
if st.button('Generate My Fitness Plan'):
|
| 25 |
# Construct the prompt for the AI
|
| 26 |
prompt_text = (
|
| 27 |
-
f"Create a personalized 6-month fitness and health plan for
|
| 28 |
f"Health issues: {current_health_issues}. Dietary preferences: {dietary_preferences}. Fitness goals: {', '.join(fitness_goals)} over {goal_timeframe}."
|
| 29 |
)
|
| 30 |
|
|
|
|
| 8 |
|
| 9 |
# User inputs
|
| 10 |
st.subheader("About You")
|
|
|
|
| 11 |
age = st.number_input("Your Age", min_value=12, max_value=100, step=1)
|
| 12 |
gender = st.selectbox("Your Gender", ["Female", "Male", "Prefer not to say"])
|
| 13 |
|
|
|
|
| 23 |
if st.button('Generate My Fitness Plan'):
|
| 24 |
# Construct the prompt for the AI
|
| 25 |
prompt_text = (
|
| 26 |
+
f"Create a personalized 6-month fitness and health plan for the user, a {age}-year-old {gender} with {current_fitness_level} fitness level. "
|
| 27 |
f"Health issues: {current_health_issues}. Dietary preferences: {dietary_preferences}. Fitness goals: {', '.join(fitness_goals)} over {goal_timeframe}."
|
| 28 |
)
|
| 29 |
|