Spaces:
Sleeping
Sleeping
File size: 732 Bytes
67f2d06 d29854e 7021ecf 67f2d06 7021ecf 67f2d06 25c9e74 67f2d06 7021ecf 25c9e74 7021ecf 25c9e74 67f2d06 7021ecf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import gradio as gr
import pandas as pd
def update():
return pd.read_csv('papers.csv', header=0)
block = gr.Blocks()
with block:
gr.Markdown(
"""# Papers List for NAACL 2022 as part of the NAACL event, To learn more and join, see <a href="https://huggingface.co/NAACL2022" target="_blank" style="text-decoration: underline">NAACL event</a>"""
)
with gr.Tabs():
with gr.TabItem("NAACL papers list"):
with gr.Row():
data = gr.Dataframe(type="pandas", wrap=True)
with gr.Row():
data_run = gr.Button("Refresh")
data_run.click(update, inputs=None, outputs=data)
block.load(update, inputs=None, outputs=data)
block.launch()
|