Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
shigeki Ishida
commited on
Commit
•
72b38a9
1
Parent(s):
b93e2fb
fix displayed_by_default
Browse files- .python-version +1 -1
- app.py +2 -2
- src/display/utils.py +5 -1
.python-version
CHANGED
@@ -1 +1 @@
|
|
1 |
-
3.10
|
|
|
1 |
+
3.10.15
|
app.py
CHANGED
@@ -312,10 +312,10 @@ with gr.Blocks() as demo_leaderboard:
|
|
312 |
value=[
|
313 |
c.name
|
314 |
for c in fields(AutoEvalColumn)
|
315 |
-
if
|
|
|
316 |
and not c.never_hidden
|
317 |
and c.task_type == task_type
|
318 |
-
and ((task_type == TaskType.AVG) or (task_type != TaskType.AVG and c.average))
|
319 |
],
|
320 |
elem_id="column-select",
|
321 |
container=False,
|
|
|
312 |
value=[
|
313 |
c.name
|
314 |
for c in fields(AutoEvalColumn)
|
315 |
+
if c.displayed_by_default
|
316 |
+
and not c.hidden
|
317 |
and not c.never_hidden
|
318 |
and c.task_type == task_type
|
|
|
319 |
],
|
320 |
elem_id="column-select",
|
321 |
container=False,
|
src/display/utils.py
CHANGED
@@ -38,7 +38,11 @@ for task in Tasks:
|
|
38 |
task.name,
|
39 |
ColumnContent,
|
40 |
ColumnContent(
|
41 |
-
task.value.col_name,
|
|
|
|
|
|
|
|
|
42 |
),
|
43 |
]
|
44 |
)
|
|
|
38 |
task.name,
|
39 |
ColumnContent,
|
40 |
ColumnContent(
|
41 |
+
task.value.col_name,
|
42 |
+
"number",
|
43 |
+
displayed_by_default=(task.value.task_type == TaskType.AVG or task.value.average),
|
44 |
+
task_type=task.value.task_type,
|
45 |
+
average=task.value.average,
|
46 |
),
|
47 |
]
|
48 |
)
|