yan111222 commited on
Commit
8600211
·
verified ·
1 Parent(s): 6e913e4

Update src/envs.py

Browse files
Files changed (1) hide show
  1. src/envs.py +5 -8
src/envs.py CHANGED
@@ -4,25 +4,22 @@ from huggingface_hub import HfApi
4
 
5
  # Info to change for your repository
6
  # ----------------------------------
7
- TOKEN = os.environ.get("TOKEN") # A read/write token for your org
8
 
9
- DEVICE = "cpu" # "cuda:0" if you add compute
10
- LIMIT = None # !!!! Should be None for actual evaluations!!!
11
  # ----------------------------------
12
 
13
- OWNER = "openlifescienceai"
14
- REPO_ID = f"{OWNER}/open_medical_llm_leaderboard"
15
  QUEUE_REPO = f"{OWNER}/requests"
16
  RESULTS_REPO = f"{OWNER}/results"
17
 
18
-
19
  # If you setup a cache later, just change HF_HOME
20
  CACHE_PATH=os.getenv("HF_HOME", ".")
21
 
22
  # Local caches
23
  EVAL_REQUESTS_PATH = os.path.join(CACHE_PATH, "eval-queue")
24
  EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval-results")
25
- EVAL_REQUESTS_PATH_BACKEND = os.path.join(CACHE_PATH, "eval-queue")
26
- EVAL_RESULTS_PATH_BACKEND = os.path.join(CACHE_PATH, "eval-results")
27
 
28
  API = HfApi(token=TOKEN)
 
4
 
5
  # Info to change for your repository
6
  # ----------------------------------
7
+ TOKEN = os.environ.get("HF_TOKEN") # A read/write token for your org
8
 
9
+ OWNER = "demo-leaderboard-backend" # Change to your org - don't forget to create a results and request dataset, with the correct format!
 
10
  # ----------------------------------
11
 
12
+ REPO_ID = f"{OWNER}/leaderboard"
 
13
  QUEUE_REPO = f"{OWNER}/requests"
14
  RESULTS_REPO = f"{OWNER}/results"
15
 
 
16
  # If you setup a cache later, just change HF_HOME
17
  CACHE_PATH=os.getenv("HF_HOME", ".")
18
 
19
  # Local caches
20
  EVAL_REQUESTS_PATH = os.path.join(CACHE_PATH, "eval-queue")
21
  EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval-results")
22
+ EVAL_REQUESTS_PATH_BACKEND = os.path.join(CACHE_PATH, "eval-queue-bk")
23
+ EVAL_RESULTS_PATH_BACKEND = os.path.join(CACHE_PATH, "eval-results-bk")
24
 
25
  API = HfApi(token=TOKEN)