Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
# Set up the title and description
|
4 |
+
st.title("Hyper-Pump AI")
|
5 |
+
st.markdown("""
|
6 |
+
Welcome to the Workout Planner!
|
7 |
+
Please select or input the muscle group you'd like to work out, and we'll suggest exercises for you.
|
8 |
+
""")
|
9 |
+
|
10 |
+
# Dropdown menu for muscle group selection
|
11 |
+
muscle_groups = [
|
12 |
+
"Chest",
|
13 |
+
"Back",
|
14 |
+
"Legs",
|
15 |
+
"Arms",
|
16 |
+
"Shoulders",
|
17 |
+
"Core",
|
18 |
+
"Full Body",
|
19 |
+
]
|
20 |
+
|
21 |
+
selected_group = st.selectbox("Choose a muscle group:", muscle_groups)
|
22 |
+
|
23 |
+
# Option to input a custom muscle group
|
24 |
+
custom_group = st.text_input("Or enter a custom muscle group:")
|
25 |
+
|
26 |
+
# Display the selected or custom muscle group
|
27 |
+
if st.button("Submit"):
|
28 |
+
if custom_group:
|
29 |
+
st.success(f"You selected a custom muscle group: {custom_group}")
|
30 |
+
else:
|
31 |
+
st.success(f"You selected: {selected_group}")
|
32 |
+
|
33 |
+
st.markdown("---")
|
34 |
+
st.markdown("This app is powered by Streamlit and hosted on Hugging Face Spaces!")
|