akhaliq HF Staff commited on
Commit
25c9e74
·
1 Parent(s): fdbacd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -10
app.py CHANGED
@@ -701,15 +701,17 @@ def update():
701
  papers_table = tables[0] # Select table of interest
702
  return papers_table
703
 
704
- demo = gr.Blocks()
705
 
706
- with demo:
707
- gr.Markdown(
708
- """Papers Table
709
- """)
710
- out = gr.Dataframe()
 
 
 
 
711
 
712
- inp.change(fn=update,
713
- outputs=out)
714
-
715
- demo.launch()
 
701
  papers_table = tables[0] # Select table of interest
702
  return papers_table
703
 
704
+ block = gr.Blocks()
705
 
706
+ with block:
707
+ gr.Markdown("""Papers List""")
708
+ with gr.Tabs():
709
+ with gr.TabItem("NAACL papers list"):
710
+ with gr.Row():
711
+ data = gr.outputs.Dataframe(type="pandas")
712
+ with gr.Row():
713
+ data_run = gr.Button("Refresh")
714
+ data_run.click(update, inputs=None, outputs=data)
715
 
716
+ block.load(update, inputs=None, outputs=data)
717
+ block.launch()