Spaces:
Sleeping
Sleeping
Download scripts/push_hf_dev.ps1 from coderuday21/satdetect: direct link, hf CLI and curl.
- Browser
- Download file 634 Bytes
-
https://huggingface.co/spaces/coderuday21/satdetect/resolve/16caeebb9cffff99d4262ec17aede6ba113a9e29/scripts/push_hf_dev.ps1
- Command line
-
hf download hf://spaces/coderuday21/satdetect@16caeebb9cffff99d4262ec17aede6ba113a9e29/scripts/push_hf_dev.ps1
-
curl -L -o push_hf_dev.ps1 https://huggingface.co/spaces/coderuday21/satdetect/resolve/16caeebb9cffff99d4262ec17aede6ba113a9e29/scripts/push_hf_dev.ps1
634 Bytes
| # Push master to the dev Hugging Face Space (satdetect-dev). | |
| $ErrorActionPreference = "Stop" | |
| Set-Location (Split-Path $PSScriptRoot -Parent) | |
| if (-not (git remote get-url hf-dev 2>$null)) { | |
| Write-Host "Adding remote hf-dev..." | |
| git remote add hf-dev https://huggingface.co/spaces/coderuday21/satdetect-dev | |
| } | |
| $branch = git rev-parse --abbrev-ref HEAD | |
| if ($branch -ne "master") { | |
| Write-Host "Switching to master branch..." | |
| git checkout master | |
| } | |
| Write-Host "Pushing master -> hf-dev/main (satdetect-dev)..." | |
| git push hf-dev master:main | |
| Write-Host "Done. Dev app: https://huggingface.co/spaces/coderuday21/satdetect-dev" | |