Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -74,15 +74,17 @@ else:
|
|
74 |
# Display the current shelter information
|
75 |
shelter = shelters[st.session_state.shelter_index]
|
76 |
st.write(shelter["description"])
|
77 |
-
|
78 |
-
|
79 |
-
|
|
|
|
|
80 |
with col1:
|
81 |
if st.button("Previous"):
|
82 |
if st.session_state.shelter_index > 0:
|
83 |
st.session_state.shelter_index -= 1
|
84 |
st.experimental_rerun()
|
85 |
-
|
86 |
with col2:
|
87 |
if st.button("Next"):
|
88 |
if st.session_state.shelter_index < len(shelters) - 1:
|
|
|
74 |
# Display the current shelter information
|
75 |
shelter = shelters[st.session_state.shelter_index]
|
76 |
st.write(shelter["description"])
|
77 |
+
|
78 |
+
# Create two columns
|
79 |
+
col1, col2 = st.columns(2)
|
80 |
+
|
81 |
+
# Add buttons to each column
|
82 |
with col1:
|
83 |
if st.button("Previous"):
|
84 |
if st.session_state.shelter_index > 0:
|
85 |
st.session_state.shelter_index -= 1
|
86 |
st.experimental_rerun()
|
87 |
+
|
88 |
with col2:
|
89 |
if st.button("Next"):
|
90 |
if st.session_state.shelter_index < len(shelters) - 1:
|