Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
t0-0
commited on
Commit
•
4ddc686
1
Parent(s):
417fc7a
Split checkboxes for selecting column filters into Accordion sections
Browse files- app.py +23 -21
- src/about.py +13 -13
app.py
CHANGED
@@ -285,31 +285,33 @@ with gr.Blocks() as demo_leaderboard:
|
|
285 |
show_label=False,
|
286 |
elem_id="search-bar",
|
287 |
)
|
288 |
-
with gr.
|
289 |
shown_columns_dict = {}
|
290 |
for task_type in TaskType:
|
291 |
if task_type == TaskType.NotTask:
|
292 |
-
label = "
|
293 |
else:
|
294 |
-
label =
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
|
|
|
|
313 |
with gr.Column(min_width=320):
|
314 |
filter_columns_type = gr.CheckboxGroup(
|
315 |
label="Model types",
|
|
|
285 |
show_label=False,
|
286 |
elem_id="search-bar",
|
287 |
)
|
288 |
+
with gr.Column():
|
289 |
shown_columns_dict = {}
|
290 |
for task_type in TaskType:
|
291 |
if task_type == TaskType.NotTask:
|
292 |
+
label = "Model details"
|
293 |
else:
|
294 |
+
label = task_type.value
|
295 |
+
with gr.Accordion(label, open=False):
|
296 |
+
with gr.Row():
|
297 |
+
shown_column = gr.CheckboxGroup(
|
298 |
+
label="Select columns to show",
|
299 |
+
choices=[
|
300 |
+
c.name
|
301 |
+
for c in fields(AutoEvalColumn)
|
302 |
+
if not c.hidden and not c.never_hidden and not c.dummy and c.task_type == task_type
|
303 |
+
],
|
304 |
+
value=[
|
305 |
+
c.name
|
306 |
+
for c in fields(AutoEvalColumn)
|
307 |
+
if c.displayed_by_default
|
308 |
+
and not c.hidden
|
309 |
+
and not c.never_hidden
|
310 |
+
and c.task_type == task_type
|
311 |
+
],
|
312 |
+
elem_id="column-select",
|
313 |
+
)
|
314 |
+
shown_columns_dict[task_type.name] = shown_column
|
315 |
with gr.Column(min_width=320):
|
316 |
filter_columns_type = gr.CheckboxGroup(
|
317 |
label="Model types",
|
src/about.py
CHANGED
@@ -3,19 +3,19 @@ from enum import Enum
|
|
3 |
|
4 |
|
5 |
class TaskType(Enum):
|
6 |
-
ALL = "
|
7 |
-
RC = "RC"
|
8 |
-
EL = "EL"
|
9 |
-
MR = "MR"
|
10 |
-
STS = "STS"
|
11 |
-
QA = "QA"
|
12 |
-
HE = "HE"
|
13 |
-
CG = "CG"
|
14 |
-
MC = "MC"
|
15 |
-
NLI = "NLI"
|
16 |
-
FA = "FA"
|
17 |
-
SUM = "SUM"
|
18 |
-
MT = "MT"
|
19 |
NotTask = "?"
|
20 |
|
21 |
|
|
|
3 |
|
4 |
|
5 |
class TaskType(Enum):
|
6 |
+
ALL = "Overall Average - 全体平均"
|
7 |
+
RC = "RC - 読解力"
|
8 |
+
EL = "EL - エンティティリンキング"
|
9 |
+
MR = "MR - 数学的推論"
|
10 |
+
STS = "STS - 意味類似度"
|
11 |
+
QA = "QA - 質問応答"
|
12 |
+
HE = "HE - 言語理解"
|
13 |
+
CG = "CG - コード生成"
|
14 |
+
MC = "MC - 多肢選択式質問応答"
|
15 |
+
NLI = "NLI - 自然言語推論"
|
16 |
+
FA = "FA - 基礎分析"
|
17 |
+
SUM = "SUM - 要約"
|
18 |
+
MT = "MT - 機械翻訳"
|
19 |
NotTask = "?"
|
20 |
|
21 |
|