working on minify react error
Browse files
app.py
CHANGED
@@ -117,13 +117,13 @@ tab1, tab2 = st.tabs(["Add Groceries", "Available Groceries"])
|
|
117 |
df = pd.DataFrame()
|
118 |
|
119 |
with tab1:
|
120 |
-
st.button("Switch
|
121 |
col1, col2 = st.columns([1.5, 1])
|
122 |
if session_state.manual_entry:
|
123 |
with col1:
|
124 |
if not session_state.clicked:
|
125 |
st.subheader("Add Groceries - Manually Input Items")
|
126 |
-
session_state.grocery_data = st.data_editor(pd.DataFrame(columns=['Name', 'Quantity', 'Additional Notes/Expiration Date']), key=session_state.editor_key, num_rows="dynamic", hide_index=True,
|
127 |
print(session_state.grocery_data)
|
128 |
st.button("Press me to update Tab 2", on_click=click_save)
|
129 |
else:
|
|
|
117 |
df = pd.DataFrame()
|
118 |
|
119 |
with tab1:
|
120 |
+
st.button("Switch Input", on_click=switch_style)
|
121 |
col1, col2 = st.columns([1.5, 1])
|
122 |
if session_state.manual_entry:
|
123 |
with col1:
|
124 |
if not session_state.clicked:
|
125 |
st.subheader("Add Groceries - Manually Input Items")
|
126 |
+
session_state.grocery_data = st.data_editor(pd.DataFrame(columns=['Name', 'Quantity', 'Additional Notes/Expiration Date']), key=session_state.editor_key, num_rows="dynamic", hide_index=True, width=550)
|
127 |
print(session_state.grocery_data)
|
128 |
st.button("Press me to update Tab 2", on_click=click_save)
|
129 |
else:
|