Download scripts/deploy.ps1 from raymuz/NLLUniversalProfessionalEditor: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/spaces/raymuz/NLLUniversalProfessionalEditor/resolve/main/scripts/deploy.ps1
- Command line
-
hf download hf://spaces/raymuz/NLLUniversalProfessionalEditor/scripts/deploy.ps1
-
curl -L -o deploy.ps1 https://huggingface.co/spaces/raymuz/NLLUniversalProfessionalEditor/resolve/main/scripts/deploy.ps1
536 Bytes
| $ErrorActionPreference = "Stop" | |
| $Space = "raymuz/NLLUniversalProfessionalEditor" | |
| if (-not $env:HF_TOKEN) { throw "Set HF_TOKEN to a Hugging Face write token." } | |
| $Temp = Join-Path $env:TEMP ("nll-space-" + [guid]::NewGuid()) | |
| git clone "https://oauth2:$($env:HF_TOKEN)@huggingface.co/spaces/$Space" $Temp | |
| Get-ChildItem -Force | Where-Object { $_.Name -notin @('.git') } | Copy-Item -Destination $Temp -Recurse -Force | |
| Push-Location $Temp | |
| git add . | |
| git commit -m "Deploy NLL Universal Professional Editor" | |
| git push origin main | |
| Pop-Location | |