File size: 1,390 Bytes
0f69076
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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
```