yonatanbitton
commited on
Commit
·
60ec340
1
Parent(s):
1a107f0
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import pandas as pd
|
3 |
+
|
4 |
+
df = pd.read_table("visit_bench_leaderboard.tsv")
|
5 |
+
|
6 |
+
headline = """# VisIT-Bench Leaderboard"""
|
7 |
+
|
8 |
+
demo = gr.Blocks()
|
9 |
+
with demo:
|
10 |
+
with gr.Row():
|
11 |
+
gr.Markdown(headline)
|
12 |
+
|
13 |
+
with gr.Column():
|
14 |
+
leaderboard_df = gr.components.DataFrame(
|
15 |
+
value=df,
|
16 |
+
datatype=["markdown", "number", "number", "number"]
|
17 |
+
)
|
18 |
+
|
19 |
+
demo.launch()
|