termix / Agent.md
Leon4gr45's picture
Upload folder using huggingface_hub
03bd533 verified
|
Raw History Blame Contribute Delete
1.3 kB
# 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"
```