File size: 536 Bytes
70b2a71 | 1 2 3 4 5 6 7 8 9 10 11 12 | $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
|