Sai Vinay G commited on
Commit
46c5671
1 Parent(s): 010b2a5
Files changed (1) hide show
  1. src/load_from_hub.py +6 -6
src/load_from_hub.py CHANGED
@@ -37,14 +37,14 @@ def load_all_info_from_hub(QUEUE_REPO: str, RESULTS_REPO: str, QUEUE_PATH: str,
37
  clone_from=QUEUE_REPO,
38
  repo_type="dataset",
39
  )
40
- # eval_queue_repo.git_pull()
41
 
42
  eval_results_repo = Repository(
43
  local_dir=RESULTS_PATH,
44
  clone_from=RESULTS_REPO,
45
  repo_type="dataset",
46
  )
47
- # eval_results_repo.git_pull()
48
 
49
  requested_models = get_all_requested_models("eval-queue")
50
 
@@ -56,10 +56,10 @@ def get_leaderboard_df(
56
  ) -> pd.DataFrame:
57
  if eval_results:
58
  print("Pulling evaluation results for the leaderboard.")
59
- # eval_results.git_pull()
60
  if eval_results_private:
61
  print("Pulling evaluation results for the leaderboard.")
62
- # eval_results_private.git_pull()
63
 
64
  all_data = get_eval_results_dicts()
65
 
@@ -84,10 +84,10 @@ def get_evaluation_queue_df(
84
  ) -> list[pd.DataFrame]:
85
  if eval_queue:
86
  print("Pulling changes for the evaluation queue.")
87
- # eval_queue.git_pull()
88
  if eval_queue_private:
89
  print("Pulling changes for the evaluation queue.")
90
- # eval_queue_private.git_pull()
91
 
92
  entries = [entry for entry in os.listdir(save_path) if not entry.startswith(".")]
93
  all_evals = []
 
37
  clone_from=QUEUE_REPO,
38
  repo_type="dataset",
39
  )
40
+ eval_queue_repo.git_pull()
41
 
42
  eval_results_repo = Repository(
43
  local_dir=RESULTS_PATH,
44
  clone_from=RESULTS_REPO,
45
  repo_type="dataset",
46
  )
47
+ eval_results_repo.git_pull()
48
 
49
  requested_models = get_all_requested_models("eval-queue")
50
 
 
56
  ) -> pd.DataFrame:
57
  if eval_results:
58
  print("Pulling evaluation results for the leaderboard.")
59
+ eval_results.git_pull()
60
  if eval_results_private:
61
  print("Pulling evaluation results for the leaderboard.")
62
+ eval_results_private.git_pull()
63
 
64
  all_data = get_eval_results_dicts()
65
 
 
84
  ) -> list[pd.DataFrame]:
85
  if eval_queue:
86
  print("Pulling changes for the evaluation queue.")
87
+ eval_queue.git_pull()
88
  if eval_queue_private:
89
  print("Pulling changes for the evaluation queue.")
90
+ eval_queue_private.git_pull()
91
 
92
  entries = [entry for entry in os.listdir(save_path) if not entry.startswith(".")]
93
  all_evals = []