Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Clémentine
commited on
Commit
•
fd5a922
1
Parent(s):
84b5dfa
hides all when selecting anything
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def update_leaderboards(show_all, modality_tags, submission_tags, test_set_tags,
|
|
31 |
|
32 |
return "- " + "\n - ".join([
|
33 |
make_clickable(space) +
|
34 |
-
f"
|
35 |
for space in spaces_of_interest
|
36 |
])
|
37 |
|
@@ -83,6 +83,11 @@ with demo:
|
|
83 |
value="",
|
84 |
)
|
85 |
|
|
|
|
|
|
|
|
|
|
|
86 |
for selector in [show_all, modality_tags, submission_tags, test_set_tags, evaluation_tags, language_tags]:
|
87 |
selector.change(
|
88 |
update_leaderboards,
|
|
|
31 |
|
32 |
return "- " + "\n - ".join([
|
33 |
make_clickable(space) +
|
34 |
+
f"*Tags: {', '.join(LEADERBOARDS_TO_INFO[space]) if len(LEADERBOARDS_TO_INFO[space]) > 0 else 'None. Please fill the tags!'}*"
|
35 |
for space in spaces_of_interest
|
36 |
])
|
37 |
|
|
|
83 |
value="",
|
84 |
)
|
85 |
|
86 |
+
for selector in [modality_tags, submission_tags, test_set_tags, evaluation_tags, language_tags]:
|
87 |
+
selector.change(
|
88 |
+
lambda _: False,
|
89 |
+
outputs=show_all
|
90 |
+
)
|
91 |
for selector in [show_all, modality_tags, submission_tags, test_set_tags, evaluation_tags, language_tags]:
|
92 |
selector.change(
|
93 |
update_leaderboards,
|