throaway2854 commited on
Commit
7a66e56
·
verified ·
1 Parent(s): 7cf4a2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -355,7 +355,7 @@ with gr.Blocks() as demo:
355
  if not current_dataset_name:
356
  return current_page_number, gr.update(), "No dataset selected."
357
  dataset = datasets[current_dataset_name]
358
- total_pages = (len(dataset) - 1) // 5 + 1
359
  if action == "next":
360
  if current_page_number + 1 < total_pages:
361
  current_page_number += 1
 
355
  if not current_dataset_name:
356
  return current_page_number, gr.update(), "No dataset selected."
357
  dataset = datasets[current_dataset_name]
358
+ total_pages = (len(dataset) - 1) // 2 + 1
359
  if action == "next":
360
  if current_page_number + 1 < total_pages:
361
  current_page_number += 1