Spaces:
Running
Running
Commit
·
91eec6b
1
Parent(s):
43bbbf7
Update Home.py
Browse files
Home.py
CHANGED
@@ -156,7 +156,7 @@ st.session_state.serving_size = st.number_input(
|
|
156 |
"How many servings would you like to cook?",
|
157 |
min_value=1,
|
158 |
max_value=100,
|
159 |
-
value=
|
160 |
step=1
|
161 |
)
|
162 |
|
@@ -209,11 +209,10 @@ user_inputs = {
|
|
209 |
"difficulty": st.session_state.selected_difficulty
|
210 |
}
|
211 |
|
212 |
-
|
213 |
-
with
|
214 |
-
st.button(label='Submit', on_click=generate_recipe, kwargs=dict(user_inputs=user_inputs), type="primary")
|
215 |
-
|
216 |
-
st.button(label='Reset', on_click=clear_inputs, type="secondary")
|
217 |
|
218 |
if st.session_state.gpt_response is not None:
|
219 |
st.divider()
|
|
|
156 |
"How many servings would you like to cook?",
|
157 |
min_value=1,
|
158 |
max_value=100,
|
159 |
+
value=st.session_state.serving_size,
|
160 |
step=1
|
161 |
)
|
162 |
|
|
|
209 |
"difficulty": st.session_state.selected_difficulty
|
210 |
}
|
211 |
|
212 |
+
button_cols = st.columns([1, 5])
|
213 |
+
with button_cols[0]:
|
214 |
+
st.button(label='Submit', on_click=generate_recipe, kwargs=dict(user_inputs=user_inputs), type="primary", use_container_width=True)
|
215 |
+
st.button(label='Reset', on_click=clear_inputs, type="secondary", use_container_width=True)
|
|
|
216 |
|
217 |
if st.session_state.gpt_response is not None:
|
218 |
st.divider()
|