XufengDuan commited on
Commit
d49a57f
1 Parent(s): 3c37a4b

update scripts

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ from huggingface_hub import snapshot_download
6
  import src.envs as envs
7
  from main_backend import PENDING_STATUS, RUNNING_STATUS, FINISHED_STATUS, FAILED_STATUS
8
  from src.backend import sort_queue
9
- from src.envs import EVAL_REQUESTS_PATH, EVAL_RESULTS_PATH, QUEUE_REPO, RESULTS_REPO, EVAL_REQUESTS_PATH_BACKEND
10
  import src.backend.manage_requests as manage_requests
11
  import socket
12
  import src.display.about as about
@@ -43,7 +43,7 @@ def init_space():
43
  ui_snapshot_download(repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30)
44
  ui_snapshot_download(repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30)
45
 
46
- original_df = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH_BACKEND, utils.COLS, utils.BENCHMARK_COLS)
47
 
48
  finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df = get_evaluation_queue_df(EVAL_REQUESTS_PATH, utils.EVAL_COLS)
49
  return original_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df
 
6
  import src.envs as envs
7
  from main_backend import PENDING_STATUS, RUNNING_STATUS, FINISHED_STATUS, FAILED_STATUS
8
  from src.backend import sort_queue
9
+ from src.envs import EVAL_REQUESTS_PATH, EVAL_RESULTS_PATH, QUEUE_REPO, RESULTS_REPO
10
  import src.backend.manage_requests as manage_requests
11
  import socket
12
  import src.display.about as about
 
43
  ui_snapshot_download(repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30)
44
  ui_snapshot_download(repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30)
45
 
46
+ original_df = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH, utils.COLS, utils.BENCHMARK_COLS)
47
 
48
  finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df = get_evaluation_queue_df(EVAL_REQUESTS_PATH, utils.EVAL_COLS)
49
  return original_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df