Libra-1995 commited on
Commit
560ccce
·
1 Parent(s): ef6c55d

update code

Browse files
Files changed (1) hide show
  1. web_server.py +2 -4
web_server.py CHANGED
@@ -39,11 +39,10 @@ class SubmissionStatus(enum.Enum):
39
 
40
 
41
  def get_token_info(token: str) -> Dict[str, Any]:
42
- token_info_path = hf_hub_download(
43
  repo_id=COMPETITION_ID,
44
  filename=f"token_data_info/{token}.json",
45
  repo_type="dataset",
46
- token=token
47
  )
48
 
49
  with open(token_info_path, 'r') as f:
@@ -60,11 +59,10 @@ def download_submission_info(team_id: str) -> Dict[str, Any]:
60
  Returns:
61
  Dict[str, Any]: The submission info.
62
  """
63
- submission_info_path = hf_hub_download(
64
  repo_id=COMPETITION_ID,
65
  filename=f"submission_info/{team_id}.json",
66
  repo_type="dataset",
67
- token=HF_TOKEN
68
  )
69
  with open(submission_info_path, 'r') as f:
70
  submission_info = json.load(f)
 
39
 
40
 
41
  def get_token_info(token: str) -> Dict[str, Any]:
42
+ token_info_path = hf_api.hf_hub_download(
43
  repo_id=COMPETITION_ID,
44
  filename=f"token_data_info/{token}.json",
45
  repo_type="dataset",
 
46
  )
47
 
48
  with open(token_info_path, 'r') as f:
 
59
  Returns:
60
  Dict[str, Any]: The submission info.
61
  """
62
+ submission_info_path = hf_api.hf_hub_download(
63
  repo_id=COMPETITION_ID,
64
  filename=f"submission_info/{team_id}.json",
65
  repo_type="dataset",
 
66
  )
67
  with open(submission_info_path, 'r') as f:
68
  submission_info = json.load(f)