# Deploy to Hugging Face Space `Nexusmon/Community` ## One-time: clone the empty Space (or use `hf download`) ```powershell # Token: https://huggingface.co/settings/tokens (write access for Space) git clone https://huggingface.co/spaces/Nexusmon/Community cd Community ``` ## Copy files from this monorepo From the NEXUSMON repo root, copy **the contents** of `spaces/hf-nexusmon-README/` into the Space repo root (same level as where `app.py` should live): - `app.py` - `README.md` (Space card YAML + description) - `requirements.txt` - `custom.css` - `DEPLOY.md` (optional) ## Push ### Option A — one command (from this folder, token required) ```powershell $env:HF_TOKEN = "hf_..." # https://huggingface.co/settings/tokens .\push-to-hf.ps1 ``` Runs `deploy_upload.py` (uses `huggingface_hub` — same stack as `hf` CLI). ### Option B — git ```powershell git add app.py README.md requirements.txt custom.css git commit -m "feat(space): Nexusmon Community" git push ``` The Space rebuilds in a few minutes. If the build fails on `sdk_version`, edit the YAML in `README.md` to match the Gradio version Hugging Face pins for new Spaces (or align `requirements.txt` with that version). ## CLI install (Windows) ```powershell powershell -ExecutionPolicy ByPass -c "irm https://hf.co/cli/install.ps1 | iex" hf auth login hf download Nexusmon/Community --repo-type=space ```