Update app.py
Browse files
app.py
CHANGED
@@ -166,25 +166,25 @@ def main():
|
|
166 |
top_menu = st.columns(3)
|
167 |
|
168 |
pagination = st.container()
|
169 |
-
|
170 |
-
|
171 |
|
172 |
bottom_menu = st.columns((3))
|
|
|
|
|
173 |
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
with bottom_menu[1]:
|
179 |
-
st.write("---")
|
180 |
-
st.markdown(f"Página **{current_page}** de **{total_pages}** ")
|
181 |
-
|
182 |
-
with top_menu[0]:
|
183 |
-
pagina_res_fin= batch_size*current_page if batch_size*current_page <= cantidad_respuestas else cantidad_respuestas
|
184 |
-
st.markdown(f"Respuestas **{(current_page*batch_size)-batch_size+1}-{pagina_res_fin}** de **{cantidad_respuestas}** ")
|
185 |
|
186 |
-
|
|
|
|
|
187 |
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
paginar_frame(pages[current_page - 1])
|
189 |
|
190 |
|
|
|
166 |
top_menu = st.columns(3)
|
167 |
|
168 |
pagination = st.container()
|
|
|
|
|
169 |
|
170 |
bottom_menu = st.columns((3))
|
171 |
+
|
172 |
+
with pagination:
|
173 |
|
174 |
+
with bottom_menu[2]:
|
175 |
+
total_pages = (ceil(cantidad_respuestas / batch_size) if ceil(cantidad_respuestas / batch_size) > 0 else 1)
|
176 |
+
current_page = st.number_input("Página", min_value=1, max_value=total_pages, step=1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
|
178 |
+
with bottom_menu[1]:
|
179 |
+
st.write("---")
|
180 |
+
st.markdown(f"Página **{current_page}** de **{total_pages}** ")
|
181 |
|
182 |
+
with top_menu[0]:
|
183 |
+
pagina_res_fin= batch_size*current_page if batch_size*current_page <= cantidad_respuestas else cantidad_respuestas
|
184 |
+
st.markdown(f"Respuestas **{(current_page*batch_size)-batch_size+1}-{pagina_res_fin}** de **{cantidad_respuestas}** ")
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
paginar_frame(pages[current_page - 1])
|
189 |
|
190 |
|