mgyigit commited on
Commit
c67e10b
1 Parent(s): c0e572f

Update src/saving_utils.py

Browse files
Files changed (1) hide show
  1. src/saving_utils.py +3 -3
src/saving_utils.py CHANGED
@@ -20,7 +20,7 @@ def get_baseline_df(selected_methods, selected_metrics, leaderboard_path="/tmp/l
20
  return leaderboard_df
21
 
22
 
23
- def save_results(method_name, benchmark_types, results, repo_id="mgyigit/probe-data", repo_type="space"):
24
  #First, download files to be updated from {repo_id}
25
  download_from_hub(benchmark_types, repo_id, repo_type)
26
 
@@ -41,7 +41,7 @@ def save_results(method_name, benchmark_types, results, repo_id="mgyigit/probe-d
41
  return 0
42
 
43
 
44
- def download_from_hub(benchmark_types, repo_id="mgyigit/probe-data", repo_type="space"):
45
  api = HfApi(token=os.getenv("api-key")) #load api-key secret
46
 
47
  benchmark_types.append("leaderboard")
@@ -67,7 +67,7 @@ def download_from_hub(benchmark_types, repo_id="mgyigit/probe-data", repo_type="
67
  return 0
68
 
69
 
70
- def upload_to_hub(benchmark_types, repo_id="mgyigit/probe-data", repo_type="space"):
71
  api = HfApi(token=os.getenv("api_key")) # Requires authentication via HF_TOKEN
72
 
73
  for benchmark in benchmark_types:
 
20
  return leaderboard_df
21
 
22
 
23
+ def save_results(method_name, benchmark_types, results, repo_id="HUBioDataLab/probe-data", repo_type="space"):
24
  #First, download files to be updated from {repo_id}
25
  download_from_hub(benchmark_types, repo_id, repo_type)
26
 
 
41
  return 0
42
 
43
 
44
+ def download_from_hub(benchmark_types, repo_id="HUBioDataLab/probe-data", repo_type="space"):
45
  api = HfApi(token=os.getenv("api-key")) #load api-key secret
46
 
47
  benchmark_types.append("leaderboard")
 
67
  return 0
68
 
69
 
70
+ def upload_to_hub(benchmark_types, repo_id="HUBioDataLab/probe-data", repo_type="space"):
71
  api = HfApi(token=os.getenv("api_key")) # Requires authentication via HF_TOKEN
72
 
73
  for benchmark in benchmark_types: