Update app.py
Browse files
app.py
CHANGED
@@ -140,8 +140,7 @@ def main():
|
|
140 |
df_results=detalles_resultados(df,result)
|
141 |
batch_size = 5
|
142 |
pages = split_frame(df_results, batch_size)
|
143 |
-
|
144 |
-
|
145 |
bottom_menu = st.columns((2))
|
146 |
with bottom_menu[1]:
|
147 |
total_pages = (ceil(len(df_results) / batch_size) if ceil(len(df_results) / batch_size) > 0 else 1)
|
@@ -149,7 +148,9 @@ def main():
|
|
149 |
|
150 |
with bottom_menu[0]:
|
151 |
st.markdown(f"Página **{current_page}** de **{total_pages}** ")
|
152 |
-
|
|
|
|
|
153 |
|
154 |
|
155 |
|
|
|
140 |
df_results=detalles_resultados(df,result)
|
141 |
batch_size = 5
|
142 |
pages = split_frame(df_results, batch_size)
|
143 |
+
pagination = st.container()
|
|
|
144 |
bottom_menu = st.columns((2))
|
145 |
with bottom_menu[1]:
|
146 |
total_pages = (ceil(len(df_results) / batch_size) if ceil(len(df_results) / batch_size) > 0 else 1)
|
|
|
148 |
|
149 |
with bottom_menu[0]:
|
150 |
st.markdown(f"Página **{current_page}** de **{total_pages}** ")
|
151 |
+
|
152 |
+
with pagination:
|
153 |
+
paginar_frame(pages[current_page - 1])
|
154 |
|
155 |
|
156 |
|