albertvillanova HF staff commited on
Commit
19703ee
·
verified ·
1 Parent(s): 8a91492

Require login for MATH Details (#3)

Browse files

- Require login for MATH Details (0da9888eab5d0dd950362ce3b5f9806cdb64ff3a)

Files changed (1) hide show
  1. 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 == "leaderboard_gpqa" else False
24
- subtasks = None if task == "leaderboard_gpqa" and not profile else constants.SUBTASKS.get(task)
 
 
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(