ibrahim yıldız commited on
Commit
859024f
·
verified ·
1 Parent(s): aadba9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -63,10 +63,16 @@ st.markdown("""
63
  st.markdown('<div class="title">Calorie Bro</div>', unsafe_allow_html=True)
64
  st.markdown('<div class="subtitle">Your AI image calorie tracker, powered by Dobby. Dare to get feedback!</div>', unsafe_allow_html=True)
65
 
66
- # Step 1: User inputs weight, goal, and Dobby tone
67
  if not st.session_state.user_info:
68
  st.markdown('<div class="header">Step 1: Set Your Preferences</div>', unsafe_allow_html=True)
69
- weight = st.number_input("Enter your weight (kg):", min_value=30, max_value=300, step=1, value=70)
 
 
 
 
 
 
70
  goal = st.selectbox("Select your goal:", ["Lose Weight", "Maintain Weight", "Gain Weight"])
71
  tone = "Sarcastic (Unhinged)" # Default tone
72
  if st.button("Submit", help="Save your preferences to start tracking meals."):
@@ -75,7 +81,7 @@ if not st.session_state.user_info:
75
  "Goal": goal,
76
  "Tone": tone
77
  }
78
- st.success("Your preferences have been saved! Proceed to meal tracking.")
79
 
80
  # Step 2: Meal tracking
81
  if st.session_state.user_info:
 
63
  st.markdown('<div class="title">Calorie Bro</div>', unsafe_allow_html=True)
64
  st.markdown('<div class="subtitle">Your AI image calorie tracker, powered by Dobby. Dare to get feedback!</div>', unsafe_allow_html=True)
65
 
66
+ # Step 1: User inputs weight (in pounds), goal, and Dobby tone
67
  if not st.session_state.user_info:
68
  st.markdown('<div class="header">Step 1: Set Your Preferences</div>', unsafe_allow_html=True)
69
+ weight = st.number_input(
70
+ "Enter your weight (lbs):",
71
+ min_value=50, # Minimum weight in pounds (~30 kg)
72
+ max_value=1000, # Maximum weight in pounds (~300 kg)
73
+ step=1,
74
+ value=175
75
+ )
76
  goal = st.selectbox("Select your goal:", ["Lose Weight", "Maintain Weight", "Gain Weight"])
77
  tone = "Sarcastic (Unhinged)" # Default tone
78
  if st.button("Submit", help="Save your preferences to start tracking meals."):
 
81
  "Goal": goal,
82
  "Tone": tone
83
  }
84
+ st.success("Your preferences have been saved!")
85
 
86
  # Step 2: Meal tracking
87
  if st.session_state.user_info: