Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ elif st.session_state.question_no == 4:
|
|
120 |
|
121 |
elif st.session_state.question_no == 5:
|
122 |
progress = st.progress((st.session_state.question_no) / 10
|
123 |
-
glucose = st.text_input(f"
|
124 |
if st.button("Next->"):
|
125 |
if not is_number(glucose):
|
126 |
st.warning("Please enter a valid input!!!!")
|
@@ -150,7 +150,7 @@ elif st.session_state.question_no == 7:
|
|
150 |
|
151 |
elif st.session_state.question_no == 8:
|
152 |
progress = st.progress((st.session_state.question_no) / 10
|
153 |
-
weight = st.text_input(f"
|
154 |
if st.button("Next->"):
|
155 |
if not is_number(weight):
|
156 |
st.warning("Please enter valid input!!!")
|
|
|
120 |
|
121 |
elif st.session_state.question_no == 5:
|
122 |
progress = st.progress((st.session_state.question_no) / 10
|
123 |
+
glucose = st.text_input(f"Enter your glucose level", key=st.session_state.question_no)
|
124 |
if st.button("Next->"):
|
125 |
if not is_number(glucose):
|
126 |
st.warning("Please enter a valid input!!!!")
|
|
|
150 |
|
151 |
elif st.session_state.question_no == 8:
|
152 |
progress = st.progress((st.session_state.question_no) / 10
|
153 |
+
weight = st.text_input(f"Enter your weight in KG")
|
154 |
if st.button("Next->"):
|
155 |
if not is_number(weight):
|
156 |
st.warning("Please enter valid input!!!")
|