Spaces:
Running on Zero
Running on Zero
Download scripts/deploy_hf_space.ps1 from MinhDS/ProfillyBot: direct link, hf CLI and curl.
- Browser
- Download file 534 Bytes
-
https://huggingface.co/spaces/MinhDS/ProfillyBot/resolve/main/scripts/deploy_hf_space.ps1
- Command line
-
hf download hf://spaces/MinhDS/ProfillyBot/scripts/deploy_hf_space.ps1
-
curl -L -o deploy_hf_space.ps1 https://huggingface.co/spaces/MinhDS/ProfillyBot/resolve/main/scripts/deploy_hf_space.ps1
534 Bytes
| # Deploy ProfillyBot to Hugging Face Space: MinhDS/ProfillyBot | |
| # Usage: | |
| # $env:HF_TOKEN = "hf_xxx" # token with Write access | |
| # .\scripts\deploy_hf_space.ps1 | |
| $ErrorActionPreference = "Stop" | |
| $Root = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path) | |
| Set-Location $Root | |
| if (-not $env:HF_TOKEN -and -not $env:HUGGINGFACE_HUB_TOKEN) { | |
| Write-Error "Set HF_TOKEN (https://huggingface.co/settings/tokens) then re-run." | |
| } | |
| python "$Root\scripts\deploy_hf_space.py" | |
| if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | |