Lisibonny commited on
Commit
0b42aa0
1 Parent(s): 75dfc30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -167,25 +167,25 @@ def main():
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
 
 
167
 
168
  pagination = st.container()
169
 
170
+
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
+ with pagination:
187
 
188
+ paginar_frame(pages[current_page - 1])
189
 
190
 
191