Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Require login for MATH Details (#3)
Browse files- Require login for MATH Details (0da9888eab5d0dd950362ce3b5f9806cdb64ff3a)
- src/details.py +4 -2
src/details.py
CHANGED
@@ -20,8 +20,10 @@ def update_task_description_component(task):
|
|
20 |
|
21 |
|
22 |
def update_subtasks_component(task, profile: gr.OAuthProfile | None):
|
23 |
-
visible_login_btn = True if task
|
24 |
-
subtasks =
|
|
|
|
|
25 |
return (
|
26 |
gr.LoginButton(size="sm", visible=visible_login_btn),
|
27 |
gr.Radio(
|
|
|
20 |
|
21 |
|
22 |
def update_subtasks_component(task, profile: gr.OAuthProfile | None):
|
23 |
+
visible_login_btn = True if task in {"leaderboard_gpqa", "leaderboard_math"} else False
|
24 |
+
subtasks = (
|
25 |
+
None if task in {"leaderboard_gpqa", "leaderboard_math"} and not profile else constants.SUBTASKS.get(task)
|
26 |
+
)
|
27 |
return (
|
28 |
gr.LoginButton(size="sm", visible=visible_login_btn),
|
29 |
gr.Radio(
|