belcour/hypernetwork
0
1# Deployment2 3This Space depends on two private resources. Configure secrets before starting.4 5## Secrets6 7Add in **Settings → Repository secrets** (or via CLI):8 9```bash10hf spaces secrets add belcour/hypernetwork \11 -s GITHUB_TOKEN=ghp_xxxxxxxx \12 -s HF_TOKEN=hf_xxxxxxxx13```14 15| Secret | Purpose |16|--------|---------|17| `GITHUB_TOKEN` | GitHub **classic** PAT with `repo` scope — installs `egsr2026_hypernetwork` at app startup |18| `HF_TOKEN` | Hugging Face token with read access to `belcour/egsr2026_hypernetwork` |19 20Create a GitHub PAT at https://github.com/settings/tokens (classic token, `repo` scope).21 22**Important:** `GITHUB_TOKEN` must be a GitHub token, not your Hugging Face token.23 24The private package is installed at **runtime** by [`install_dependencies.py`](install_dependencies.py) (not during the Docker build), because HF build-time secret substitution for git URLs is unreliable.25 26## Deploy27 28```bash29cd /path/to/huggingface/space30 31git push origin main32 33hf spaces settings belcour/hypernetwork --hardware zero-a10g34 35hf spaces logs belcour/hypernetwork --build --follow36hf spaces logs belcour/hypernetwork --follow37```38 39## Verify40 411. Build log: completes without git clone errors (public deps only)422. Runtime log: `Installing egsr2026_hypernetwork...` then `Hypernetwork ready.`433. UI: upload square diffuse / normal / ARM maps, download `.tsnc` (header: `TSNC`)44 