lovodkin93
commited on
Commit
•
a8f0607
1
Parent(s):
e0b0cd2
Update app.py
Browse files
app.py
CHANGED
@@ -1,35 +1,12 @@
|
|
1 |
-
# import gradio as gr
|
2 |
-
# import pandas as pd
|
3 |
-
|
4 |
-
# df = pd.read_csv('FuseReviews_leaderboard.csv')
|
5 |
-
|
6 |
-
# headline = """# FuseReviews Leaderboard
|
7 |
-
|
8 |
-
# When submitting your results to the leaderboard, please make sure it is in a csv file with a single column "predictions". Make sure the predictions align to the testset order. Please send your predictions to [this mail](mailto:lovodkin93@gmail.com).
|
9 |
-
# Please include in your email 1) a name for your model, 2) your team name (including your affiliation), and optionally, 3) a github repo or paper link.
|
10 |
-
# """
|
11 |
-
# demo = gr.Blocks()
|
12 |
-
# with demo:
|
13 |
-
# with gr.Row():
|
14 |
-
# gr.Markdown(headline)
|
15 |
-
|
16 |
-
# with gr.Column():
|
17 |
-
# leaderboard_df = gr.components.DataFrame(
|
18 |
-
# value=df,
|
19 |
-
# datatype=["markdown", "number", "number", "number"]
|
20 |
-
# )
|
21 |
-
|
22 |
-
# demo.launch()
|
23 |
-
|
24 |
import gradio as gr
|
25 |
import pandas as pd
|
26 |
|
27 |
-
|
28 |
-
df = pd.read_table('visitbench_leaderboard_Single~Image_Nov072023.tsv')
|
29 |
|
30 |
-
headline = """#
|
31 |
-
|
32 |
-
|
|
|
33 |
"""
|
34 |
demo = gr.Blocks()
|
35 |
with demo:
|
@@ -39,8 +16,7 @@ with demo:
|
|
39 |
with gr.Column():
|
40 |
leaderboard_df = gr.components.DataFrame(
|
41 |
value=df,
|
42 |
-
datatype=["markdown", "
|
43 |
)
|
44 |
|
45 |
-
demo.launch()
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
|
4 |
+
df = pd.read_csv('FuseReviews_leaderboard.csv')
|
|
|
5 |
|
6 |
+
headline = """# FuseReviews Leaderboard
|
7 |
+
|
8 |
+
When submitting your results to the leaderboard, please make sure it is in a csv file with a single column "predictions". Make sure the predictions align to the testset order. Please send your predictions to [this mail](mailto:lovodkin93@gmail.com).
|
9 |
+
Please include in your email 1) a name for your model, 2) your team name (including your affiliation), and optionally, 3) a github repo or paper link.
|
10 |
"""
|
11 |
demo = gr.Blocks()
|
12 |
with demo:
|
|
|
16 |
with gr.Column():
|
17 |
leaderboard_df = gr.components.DataFrame(
|
18 |
value=df,
|
19 |
+
datatype=["markdown", "number", "number", "number"]
|
20 |
)
|
21 |
|
22 |
+
demo.launch()
|
|