Update app.py
Browse files
app.py
CHANGED
@@ -211,20 +211,22 @@ def main():
|
|
211 |
|
212 |
bottom_menu = st.columns((3))
|
213 |
|
214 |
-
|
215 |
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
|
|
|
|
228 |
paginar_frame(pages[current_page - 1])
|
229 |
|
230 |
|
|
|
211 |
|
212 |
bottom_menu = st.columns((3))
|
213 |
|
214 |
+
|
215 |
|
216 |
+
with bottom_menu[2]:
|
217 |
+
total_pages = (ceil(cantidad_resultados / batch_size) if ceil(cantidad_resultados / batch_size) > 0 else 1)
|
218 |
+
current_page = st.number_input("Página", min_value=1, max_value=total_pages, step=1)
|
219 |
+
|
220 |
+
with bottom_menu[1]:
|
221 |
+
st.write("---")
|
222 |
+
st.markdown(f"Página **{current_page}** de **{total_pages}** ")
|
223 |
+
|
224 |
+
with top_menu[0]:
|
225 |
+
pagina_res_fin= batch_size*current_page if batch_size*current_page <= cantidad_resultados else cantidad_resultados
|
226 |
+
st.markdown(f"Artículos **{(current_page*batch_size)-batch_size+1}-{pagina_res_fin}** de **{cantidad_resultados}** ")
|
227 |
+
|
228 |
+
with pagination:
|
229 |
+
|
230 |
paginar_frame(pages[current_page - 1])
|
231 |
|
232 |
|