Springboardmen commited on
Commit
6178398
Β·
verified Β·
1 Parent(s): 2120d38

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +26 -53
src/streamlit_app.py CHANGED
@@ -57,67 +57,40 @@ goal = st.selectbox(
57
  ]
58
  )
59
 
60
- # ---------------------------------------------------
61
- # EQUIPMENT (FULL IMPLEMENTATION)
62
- # ---------------------------------------------------
63
  st.subheader("πŸ‹οΈ Available Equipment")
64
 
65
  equipment_map = {}
66
 
67
- # 🏠 Bodyweight
68
-
69
- equipment_map["No Equipment"] = st.checkbox("No Equipment")
70
- equipment_map["Pull-up Bar"] = st.checkbox("Pull-up Bar")
71
- equipment_map["Dip Bars"] = st.checkbox("Dip Bars")
72
- equipment_map["Push-up Handles"] = st.checkbox("Push-up Handles")
73
-
74
- # πŸ‹οΈ Free Weights
75
-
76
- equipment_map["Dumbbells"] = st.checkbox("Dumbbells")
77
- equipment_map["Adjustable Dumbbells"] = st.checkbox("Adjustable Dumbbells")
78
- equipment_map["Barbell"] = st.checkbox("Barbell")
79
- equipment_map["Weight Plates"] = st.checkbox("Weight Plates")
80
- equipment_map["Kettlebells"] = st.checkbox("Kettlebells")
81
- equipment_map["Medicine Ball"] = st.checkbox("Medicine Ball")
82
-
83
- # 🧘 Flexibility & Core
84
-
85
- equipment_map["Yoga Mat"] = st.checkbox("Yoga Mat")
86
- equipment_map["Resistance Band"] = st.checkbox("Resistance Band")
87
- equipment_map["Bosu Ball"] = st.checkbox("Bosu Ball")
88
- equipment_map["Stability Ball"] = st.checkbox("Stability Ball")
89
- equipment_map["Foam Roller"] = st.checkbox("Foam Roller")
90
- equipment_map["Hula Hoop Ring"] = st.checkbox("Hula Hoop Ring")
91
-
92
- # πŸƒ Cardio Equipment
93
 
94
- equipment_map["Treadmill"] = st.checkbox("Treadmill")
95
- equipment_map["Exercise Bike"] = st.checkbox("Exercise Bike")
96
- equipment_map["Skipping Rope"] = st.checkbox("Skipping Rope")
97
- equipment_map["Rowing Machine"] = st.checkbox("Rowing Machine")
98
- equipment_map["Elliptical Trainer"] = st.checkbox("Elliptical Trainer")
99
- equipment_map["Stair Climber"] = st.checkbox("Stair Climber")
100
-
101
- # πŸ’ͺ Strength Machines
102
-
103
- equipment_map["Incline Bench"] = st.checkbox("Incline Bench")
104
- equipment_map["Flat Bench"] = st.checkbox("Flat Bench")
105
- equipment_map["Smith Machine"] = st.checkbox("Smith Machine")
106
- equipment_map["Leg Press Machine"] = st.checkbox("Leg Press Machine")
107
- equipment_map["Cable Machine"] = st.checkbox("Cable Machine")
108
- equipment_map["Lat Pulldown Machine"] = st.checkbox("Lat Pulldown Machine")
109
- equipment_map["Chest Press Machine"] = st.checkbox("Chest Press Machine")
110
-
111
- # βœ‹ Small Tools
112
-
113
- equipment_map["Hand Gripper"] = st.checkbox("Hand Gripper")
114
- equipment_map["Wrist Roller"] = st.checkbox("Wrist Roller")
115
- equipment_map["Ankle Weights"] = st.checkbox("Ankle Weights")
116
- equipment_map["Resistance Tubes"] = st.checkbox("Resistance Tubes")
117
 
118
- # Convert selected equipment to list
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  equipment = [item for item, selected in equipment_map.items() if selected]
120
 
 
121
  # ---------------------------------------------------
122
  # FITNESS LEVEL
123
  # ---------------------------------------------------
 
57
  ]
58
  )
59
 
 
 
 
60
  st.subheader("πŸ‹οΈ Available Equipment")
61
 
62
  equipment_map = {}
63
 
64
+ col1, col2, col3 = st.columns(3)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
 
66
+ with col1:
67
+ equipment_map["No Equipment"] = st.checkbox("No Equipment")
68
+ equipment_map["Pull-up Bar"] = st.checkbox("Pull-up Bar")
69
+ equipment_map["Dip Bars"] = st.checkbox("Dip Bars")
70
+ equipment_map["Push-up Handles"] = st.checkbox("Push-up Handles")
71
+ equipment_map["Dumbbells"] = st.checkbox("Dumbbells")
72
+ equipment_map["Adjustable Dumbbells"] = st.checkbox("Adjustable Dumbbells")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
 
74
+ with col2:
75
+ equipment_map["Barbell"] = st.checkbox("Barbell")
76
+ equipment_map["Weight Plates"] = st.checkbox("Weight Plates")
77
+ equipment_map["Kettlebells"] = st.checkbox("Kettlebells")
78
+ equipment_map["Medicine Ball"] = st.checkbox("Medicine Ball")
79
+ equipment_map["Yoga Mat"] = st.checkbox("Yoga Mat")
80
+ equipment_map["Resistance Band"] = st.checkbox("Resistance Band")
81
+
82
+ with col3:
83
+ equipment_map["Bosu Ball"] = st.checkbox("Bosu Ball")
84
+ equipment_map["Stability Ball"] = st.checkbox("Stability Ball")
85
+ equipment_map["Foam Roller"] = st.checkbox("Foam Roller")
86
+ equipment_map["Treadmill"] = st.checkbox("Treadmill")
87
+ equipment_map["Exercise Bike"] = st.checkbox("Exercise Bike")
88
+ equipment_map["Skipping Rope"] = st.checkbox("Skipping Rope")
89
+
90
+ # Convert selected to list
91
  equipment = [item for item, selected in equipment_map.items() if selected]
92
 
93
+
94
  # ---------------------------------------------------
95
  # FITNESS LEVEL
96
  # ---------------------------------------------------