Spaces:
Sleeping
Sleeping
Delete src
Browse files- src/streamlit_app.py +0 -26
src/streamlit_app.py
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 1 |
-
import streamlit as st
|
| 2 |
-
from prompt_builder import build_prompt
|
| 3 |
-
from model_api import query_model
|
| 4 |
-
|
| 5 |
-
st.set_page_config(page_title="FitPlan AI", layout="centered")
|
| 6 |
-
|
| 7 |
-
st.title("🏋️ FitPlan AI - Personalized Workout Generator")
|
| 8 |
-
|
| 9 |
-
# User Inputs
|
| 10 |
-
goal = st.selectbox("Select Your Goal",
|
| 11 |
-
["Build Muscle", "Lose Weight", "Improve Endurance"])
|
| 12 |
-
|
| 13 |
-
fitness_level = st.selectbox("Fitness Level",
|
| 14 |
-
["Beginner", "Intermediate", "Advanced"])
|
| 15 |
-
|
| 16 |
-
equipment = st.selectbox("Available Equipment",
|
| 17 |
-
["No Equipment", "Dumbbells", "Full Gym"])
|
| 18 |
-
|
| 19 |
-
if st.button("Generate Plan"):
|
| 20 |
-
|
| 21 |
-
with st.spinner("Generating your personalized workout plan..."):
|
| 22 |
-
prompt = build_prompt(goal, fitness_level, equipment)
|
| 23 |
-
response = query_model(prompt)
|
| 24 |
-
|
| 25 |
-
st.subheader("Your Personalized Workout Plan")
|
| 26 |
-
st.write(response)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|