File size: 1,300 Bytes
03bd533 | 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 50 51 52 53 54 55 56 | # Agent.md
## 1. Deployment Configuration
### Target Space
- **Profile:** `Leon4gr45`
- **Space:** `Leon4gr45/termix`
- **Full Identifier:** `Leon4gr45/Leon4gr45/termix`
- **Frontend Port:** `7860` (mandatory for all Hugging Face Spaces)
### Deployment Method
- **Docker SDK**
### HF Token
- Environment variable: `HF_TOKEN`
- Use the token provided in the environment.
### Required Files
- `Dockerfile`
- `README.md` (with HF YAML frontmatter)
- `.hfignore`
- `Agent.md`
---
## 2. API Exposure and Documentation
### Mandatory Endpoints
- **`/health`**: Returns HTTP 200 when the app is ready.
- **`/api-docs`**: Documents all available API endpoints.
### Functional Endpoints
- Client-side application: Most processing happens in the browser via WASM.
- **`/health`**: GET - Health check.
- **`/api-docs`**: GET - API Documentation.
---
## 3. Deployment Workflow
### Standard Deployment Command
```bash
huggingface-cli upload Leon4gr45/Leon4gr45/termix . --repo-type=space
```
### Monitoring Logs
Build Logs:
```bash
curl -N -H "Authorization: Bearer $HF_TOKEN" "https://huggingface.co/api/spaces/Leon4gr45/Leon4gr45/termix/logs/build"
```
Run Logs:
```bash
curl -N -H "Authorization: Bearer $HF_TOKEN" "https://huggingface.co/api/spaces/Leon4gr45/Leon4gr45/termix/logs/run"
```
|