register / envs.py
Maharshi Gor
Registration page
60ece04
raw
history blame contribute delete
671 Bytes
import os
from huggingface_hub import HfApi
# Info to change for your repository
# ----------------------------------
TOKEN = os.environ.get("HF_TOKEN") # A read/write token for your org
# Change to your org - don't forget to create a results and request dataset, with the correct format!
OWNER = "qanta-challenge"
REPO_ID = f"{OWNER}/register"
USERS_REPO = f"{OWNER}/registered-users"
DOCS_REPO_URL = "https://github.com/qanta-challenge/QANTA25"
DOCS_REPO_BRANCH = "main"
# If you setup a cache later, just change HF_HOME
CACHE_PATH = os.getenv("HF_HOME", ".")
# Local caches
USERS_PATH = os.path.join(CACHE_PATH, "registered-users")
API = HfApi(token=TOKEN)