| hf_hub_download | R Documentation |
Download a single file from a model, dataset, or Space repository.
hf_hub_download(
repo_id,
filename,
repo_type = "model",
revision = "main",
dest = NULL,
token = NULL,
overwrite = FALSE
)
repo_id |
Character string. Repository ID. |
filename |
Character string. Path to the file inside the repository. |
repo_type |
Character string. One of "model", "dataset", or "space". |
revision |
Character string. Git revision, branch, or tag. |
dest |
Character path or NULL. If NULL, writes to a temporary file. If an existing directory, the repository filename basename is used inside it. |
token |
Character string or NULL. API token for private repositories. |
overwrite |
Logical. If TRUE, overwrite an existing destination file. |
The downloaded file path.
## Not run:
hf_hub_download("BAAI/bge-small-en-v1.5", "README.md")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.