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