Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -701,15 +701,17 @@ def update():
|
|
701 |
papers_table = tables[0] # Select table of interest
|
702 |
return papers_table
|
703 |
|
704 |
-
|
705 |
|
706 |
-
with
|
707 |
-
gr.Markdown(
|
708 |
-
|
709 |
-
|
710 |
-
|
|
|
|
|
|
|
|
|
711 |
|
712 |
-
|
713 |
-
|
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()
|
|
|
|