kvokka/Deploy to Hugging Face (Spaces/Models/Datasets)

Sync a local folder to a Hugging Face repo (space/model/dataset) with an optional public proxy Space for private Space APIs.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
huggingface_repoHugging Face repo id to sync to. Accepts 'owner/name' or just 'name' (will use token owner).nosame_with_github_repo
hf_tokenHugging Face token with write access.yes
repo_typeRepo type: space, model, or dataset.nospace
space_sdkIf repo_type=space and repo doesn't exist yet, space SDK to create with: gradio|streamlit|static|docker.nogradio
privateIf true, create repo as private (only applies on creation).nofalse
source_dirLocal directory to upload to Hugging Face.no.
commit_messageCommit message for the sync commit.nosync: deploy from GitHub Actions
create_proxyIf true, create/update a public proxy Space that forwards to the (private) target Space API.nofalse
proxy_space_suffixSuffix appended to the target space name to form the proxy space name.no-proxy
proxy_hf_tokenOptional token used by the proxy space to call upstream. If empty, falls back to hf_token.no""
proxy_target_urlOptional upstream URL override for the proxy. If empty, computed from target space repo id.no""
proxy_allow_originsCORS allow-origins for the proxy. Use '*' or a comma-separated list of origins.no*
space_secretsOptional YAML mapping of Hugging Face Space secret key/value strings to create/update on the target Space.no""
space_variablesOptional YAML mapping of Hugging Face Space variable key/value strings to create/update on the target Space.no""
namedescription
repo_idResolved Hugging Face repo id (owner/name).
repo_urlHugging Face UI URL for the repo.
space_urlHugging Face UI URL for the Space (empty for non-space).
proxy_enabledtrue/false depending on whether proxy was created.
proxy_repo_idProxy Space repo id (empty if disabled).
proxy_urlProxy Space URL (empty if disabled).