Spaces:
Running
Running
adrianpierce
commited on
Commit
•
e240d99
1
Parent(s):
5cf2175
Update Home.py
Browse files
Home.py
CHANGED
@@ -218,6 +218,8 @@ with button_cols_submit[0]:
|
|
218 |
st.button(label='Submit', on_click=generate_recipe, kwargs=dict(user_inputs=user_inputs), type="primary", use_container_width=True)
|
219 |
with button_cols_submit[1]:
|
220 |
st.button(label='Reset', on_click=clear_inputs, type="secondary", use_container_width=True)
|
|
|
|
|
221 |
|
222 |
if st.session_state.gpt_response is not None:
|
223 |
st.divider()
|
@@ -242,5 +244,9 @@ if st.session_state.gpt_response is not None:
|
|
242 |
button_cols_save = st.columns([1, 1, 4])
|
243 |
with button_cols_save[0]:
|
244 |
st.button("Save Recipe", on_click=save_recipe, disabled=disable_button, type="primary")
|
|
|
|
|
|
|
|
|
245 |
if st.session_state.recipe_saved == True:
|
246 |
st.success("Recipe Saved!")
|
|
|
218 |
st.button(label='Submit', on_click=generate_recipe, kwargs=dict(user_inputs=user_inputs), type="primary", use_container_width=True)
|
219 |
with button_cols_submit[1]:
|
220 |
st.button(label='Reset', on_click=clear_inputs, type="secondary", use_container_width=True)
|
221 |
+
with button_cols_submit[2]:
|
222 |
+
st.empty()
|
223 |
|
224 |
if st.session_state.gpt_response is not None:
|
225 |
st.divider()
|
|
|
244 |
button_cols_save = st.columns([1, 1, 4])
|
245 |
with button_cols_save[0]:
|
246 |
st.button("Save Recipe", on_click=save_recipe, disabled=disable_button, type="primary")
|
247 |
+
with button_cols_save[1]:
|
248 |
+
st.empty()
|
249 |
+
with button_cols_save[2]:
|
250 |
+
st.empty()
|
251 |
if st.session_state.recipe_saved == True:
|
252 |
st.success("Recipe Saved!")
|