Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -151,13 +151,20 @@ if (summ_text is not None) or ('summ_text' in st.session_state):
|
|
151 |
st.button("Previous", on_click=turn_page, args=("prev",))
|
152 |
|
153 |
# Center aligned text in col2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
with col2:
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
|
162 |
# Next button in col3, right aligned
|
163 |
with col3:
|
|
|
151 |
st.button("Previous", on_click=turn_page, args=("prev",))
|
152 |
|
153 |
# Center aligned text in col2
|
154 |
+
# with col2:
|
155 |
+
# st.markdown(
|
156 |
+
# f'<div style="display: flex; justify-content: center; align-items: center; height: 100%;">'
|
157 |
+
# f'Page {st.session_state.page_index + 1} of {len(st.session_state.summ_text)}'
|
158 |
+
# f'</div>',
|
159 |
+
# unsafe_allow_html=True
|
160 |
+
# )
|
161 |
with col2:
|
162 |
+
st.markdown(
|
163 |
+
f'<div style="display: flex; justify-content: center; align-items: center; height: 100%; border: 2px solid #000; padding: 10px; border-radius: 5px;">'
|
164 |
+
f'Page {st.session_state.page_index + 1} of {len(st.session_state.summ_text)}'
|
165 |
+
f'</div>',
|
166 |
+
unsafe_allow_html=True
|
167 |
+
)
|
168 |
|
169 |
# Next button in col3, right aligned
|
170 |
with col3:
|