File size: 397 Bytes
9eb87c8 2dcd69b 9eb87c8 2dcd69b 9eb87c8 2dcd69b f062a20 2dcd69b 02eb343 9eb87c8 02eb343 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from huggingface_hub import HfApi, Repository
hf_access_token = "{{cookiecutter.hf_access_token}}"
repo_url = HfApi().create_repo(
repo_id="{{cookiecutter.hf_hub_username}}/{{cookiecutter.repo_name}}",
token=hf_access_token,
exist_ok=True,
private=True,
repo_type="dataset",
)
model_repo = Repository(
local_dir=".",
clone_from=repo_url,
token=hf_access_token,
)
|