mgyigit commited on
Commit
4542647
1 Parent(s): 2781be6

Update src/saving_utils.py

Browse files
Files changed (1) hide show
  1. src/saving_utils.py +4 -3
src/saving_utils.py CHANGED
@@ -37,11 +37,12 @@ def download_files_from_hub(benchmark_types, repo_id="mgyigit/probe-data", repo_
37
 
38
  try:
39
  # Download the file from the specified repo
40
- api.download_file(
41
  repo_id=repo_id,
42
- path_in_repo=file_name,
43
- local_dir="/tmp",
44
  repo_type=repo_type,
 
 
 
45
  )
46
  print(f"Downloaded {file_name} from {repo_id} to {local_path}")
47
 
 
37
 
38
  try:
39
  # Download the file from the specified repo
40
+ api.hf_hub_download(
41
  repo_id=repo_id,
 
 
42
  repo_type=repo_type,
43
+ filename=file_name,
44
+ local_dir="/tmp",
45
+ token=os.getenv("api-key"),
46
  )
47
  print(f"Downloaded {file_name} from {repo_id} to {local_path}")
48