hub_snapshot | R Documentation |
Downloads and stores all files from a Hugging Face Hub repository.
hub_snapshot(
repo_id,
...,
revision = "main",
repo_type = "model",
local_files_only = FALSE,
force_download = FALSE,
allow_patterns = NULL,
ignore_patterns = NULL
)
repo_id |
The repository identifier, eg |
... |
currenytly unused. |
revision |
Revision (branch, tag or commitid) to download the file from. |
repo_type |
The type of the repository. Currently only |
local_files_only |
Only use cached files? |
force_download |
For re-downloading of files that are cached. |
allow_patterns |
A character vector containing patters that are used to filter allowed files to snapshot. |
ignore_patterns |
A character vector contaitning patterns to reject files from being downloaded. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.