Borchmann's picture
Upload folder using huggingface_hub
6da8289 verified
raw
history blame
591 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
REPO_ID = "Snowflake/Agentic-Document-AI"
QUEUE_REPO = "agentic-document-ai/backend-requests"
RESULTS_REPO = "agentic-document-ai/backend-results"
# If you setup a cache later, just change HF_HOME
CACHE_PATH = os.getenv("HF_HOME", ".")
# Local caches
EVAL_REQUESTS_PATH = os.path.join(CACHE_PATH, "eval-queue")
EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval-results")
API = HfApi(token=TOKEN)