Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
chore: clean up
Browse files- src/envs.py +7 -4
src/envs.py
CHANGED
|
@@ -4,18 +4,21 @@ 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 |
-
OWNER = "nan" # 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 |
-
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
# If you setup a cache later, just change HF_HOME
|
| 16 |
CACHE_PATH = os.getenv("HF_HOME", ".")
|
| 17 |
|
| 18 |
# Local caches
|
| 19 |
-
EVAL_RESULTS_PATH =
|
| 20 |
|
| 21 |
API = HfApi(token=TOKEN)
|
|
|
|
| 4 |
|
| 5 |
# Info to change for your repository
|
| 6 |
# ----------------------------------
|
| 7 |
+
TOKEN = os.environ.get("TOKEN", "") # A read/write token for your org
|
| 8 |
|
| 9 |
+
OWNER = "AIR-Bench" # "nan" # 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 |
+
# repo for storing the evaluation results
|
| 14 |
+
RESULTS_REPO = f"{OWNER}/eval_results"
|
| 15 |
+
# repo for submitting the evaluation
|
| 16 |
+
SEARCH_RESULTS_REPO = f"{OWNER}/search_results"
|
| 17 |
|
| 18 |
# If you setup a cache later, just change HF_HOME
|
| 19 |
CACHE_PATH = os.getenv("HF_HOME", ".")
|
| 20 |
|
| 21 |
# Local caches
|
| 22 |
+
EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval_results")
|
| 23 |
|
| 24 |
API = HfApi(token=TOKEN)
|