File size: 356 Bytes
3487048
 
 
 
a7219e0
 
 
 
3487048
 
a7219e0
3487048
 
7112a9c
 
3487048
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os

from huggingface_hub import login, snapshot_download

HF_TOKEN = os.getenv("HF_TOKEN")
if HF_TOKEN is None:
    raise RuntimeError("HF_TOKEN is not set")

CODE_REPO_ID = "elsamueldev/confia-backend-code"

login(HF_TOKEN)

snapshot_download(
    repo_id=CODE_REPO_ID,
    repo_type="dataset",
    local_dir=".",
    local_dir_use_symlinks=False
)