Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,4 +80,13 @@ if st.button("Submit Profile"):
|
|
| 80 |
if start != -1:
|
| 81 |
end = raw_workout.find(days[i+1]) if i+1 < len(days) else len(raw_workout)
|
| 82 |
day_content = raw_workout[start:end].strip()
|
| 83 |
-
st.markdown(f'<div class="day-card">{day_content}</div>', unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
if start != -1:
|
| 81 |
end = raw_workout.find(days[i+1]) if i+1 < len(days) else len(raw_workout)
|
| 82 |
day_content = raw_workout[start:end].strip()
|
| 83 |
+
st.markdown(f'<div class="day-card">{day_content}</div>', unsafe_allow_html=True)
|
| 84 |
+
# In app.py - add this after the for loop that displays the day-cards
|
| 85 |
+
if not "Error" in raw_workout:
|
| 86 |
+
st.write("---")
|
| 87 |
+
st.download_button(
|
| 88 |
+
label="Download Full 5-Day Plan as Text",
|
| 89 |
+
data=raw_workout,
|
| 90 |
+
file_name=f"{name}_Fitness_Plan.txt",
|
| 91 |
+
mime="text/plain"
|
| 92 |
+
)
|