|
Download Agent.md from Leon4gr45/termix: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/spaces/Leon4gr45/termix/resolve/main/Agent.md
- Command line
-
hf download hf://spaces/Leon4gr45/termix/Agent.md
-
curl -L -o Agent.md https://huggingface.co/spaces/Leon4gr45/termix/resolve/main/Agent.md
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" | |
| ``` | |