Commit
·
e045c4a
1
Parent(s):
4dcba74
make it scrollable
Browse files
app.py
CHANGED
@@ -44,7 +44,12 @@ def upload_file(files):
|
|
44 |
return file_paths
|
45 |
|
46 |
|
47 |
-
demo = gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
48 |
with demo:
|
49 |
gr.HTML(TITLE)
|
50 |
gr.HTML(LINKS)
|
@@ -63,12 +68,17 @@ with demo:
|
|
63 |
with gr.Tab("Human Evaluation", elem_id="human-tab", id=1):
|
64 |
human_leaderboard_table_test = gr.components.Dataframe(
|
65 |
value=human_eval_dataframe_test, datatype=TYPES, interactive=False,
|
66 |
-
column_widths=["15%", "15%", "15%", "15%", "10%", "10%", "10%", "10%", "15%"]
|
|
|
|
|
|
|
|
|
67 |
)
|
68 |
with gr.Tab("Auto Evaluation", elem_id="auto-tab", id=2):
|
69 |
auto_leaderboard_table_test = gr.components.Dataframe(
|
70 |
value=auto_eval_dataframe_test, datatype=TYPES, interactive=False,
|
71 |
-
|
|
|
72 |
)
|
73 |
|
74 |
with gr.Tab("Submission Guideline", elem_id="submit-tab", id=3):
|
|
|
44 |
return file_paths
|
45 |
|
46 |
|
47 |
+
demo = gr.Blocks(css="""
|
48 |
+
#human-leaderboard-table {
|
49 |
+
width: auto; /* allow auto sizing */
|
50 |
+
min-width: calc(100% + 20px); /* extend a little beyond the content */
|
51 |
+
}
|
52 |
+
""")
|
53 |
with demo:
|
54 |
gr.HTML(TITLE)
|
55 |
gr.HTML(LINKS)
|
|
|
68 |
with gr.Tab("Human Evaluation", elem_id="human-tab", id=1):
|
69 |
human_leaderboard_table_test = gr.components.Dataframe(
|
70 |
value=human_eval_dataframe_test, datatype=TYPES, interactive=False,
|
71 |
+
# column_widths=["15%", "15%", "15%", "15%", "10%", "10%", "10%", "10%", "15%"]
|
72 |
+
# interactive=False,
|
73 |
+
# height=700,
|
74 |
+
# column_widths=[190, 140, 75, 75, 50, 50, 50, 50, 75],
|
75 |
+
wrap=False
|
76 |
)
|
77 |
with gr.Tab("Auto Evaluation", elem_id="auto-tab", id=2):
|
78 |
auto_leaderboard_table_test = gr.components.Dataframe(
|
79 |
value=auto_eval_dataframe_test, datatype=TYPES, interactive=False,
|
80 |
+
wrap=False
|
81 |
+
# column_widths=["15%", "15%", "15%", "15%", "10%", "10%", "10%", "10%", "15%"]
|
82 |
)
|
83 |
|
84 |
with gr.Tab("Submission Guideline", elem_id="submit-tab", id=3):
|