throaway2854 commited on
Commit
b3fbd95
·
verified ·
1 Parent(s): ad3e72b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -144,7 +144,7 @@ with gr.Blocks() as demo:
144
  message_box = gr.Textbox(interactive=False, label="Message")
145
 
146
  # Dataset Viewer and Pagination Controls at the Bottom
147
- with gr.Column(visible=False) as dataset_viewer_section:
148
  gr.Markdown("### Dataset Viewer")
149
  dataset_html = gr.HTML()
150
  with gr.Row():
@@ -368,7 +368,7 @@ with gr.Blocks() as demo:
368
  return current_page_number, gr.update(value=html_content), ""
369
 
370
  with gr.Blocks():
371
- dataset_viewer_section.style(visible=True)
372
 
373
  prev_button.click(
374
  fn=lambda current_page_number, datasets, current_dataset_name: change_page("prev", current_page_number, datasets, current_dataset_name),
 
144
  message_box = gr.Textbox(interactive=False, label="Message")
145
 
146
  # Dataset Viewer and Pagination Controls at the Bottom
147
+ with gr.Column(visible=False):
148
  gr.Markdown("### Dataset Viewer")
149
  dataset_html = gr.HTML()
150
  with gr.Row():
 
368
  return current_page_number, gr.update(value=html_content), ""
369
 
370
  with gr.Blocks():
371
+ dataset_viewer_section(visible=True)
372
 
373
  prev_button.click(
374
  fn=lambda current_page_number, datasets, current_dataset_name: change_page("prev", current_page_number, datasets, current_dataset_name),