CompileError/WebCoderBench
0
1import os2 3from huggingface_hub import HfApi4 5# Info to change for your repository6# ----------------------------------7TOKEN = os.environ.get("HF_TOKEN") # A read/write token for your org8 9OWNER = "demo-leaderboard-backend" # Change to your org - don't forget to create a results and request dataset, with the correct format!10# ----------------------------------11 12REPO_ID = f"{OWNER}/leaderboard"13QUEUE_REPO = f"{OWNER}/requests"14RESULTS_REPO = f"{OWNER}/results"15 16# If you setup a cache later, just change HF_HOME17CACHE_PATH = os.getenv("HF_HOME", ".")18 19# Local caches20EVAL_REQUESTS_PATH = os.path.join(CACHE_PATH, "eval-queue")21EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval-results")22EVAL_REQUESTS_PATH_BACKEND = os.path.join(CACHE_PATH, "eval-queue-bk")23EVAL_RESULTS_PATH_BACKEND = os.path.join(CACHE_PATH, "eval-results-bk")24 25API = HfApi(token=TOKEN)26 