|
Download README.md from Percy3822/Brain: direct link, hf CLI and curl.
- Browser
- Download file 809 Bytes
-
https://huggingface.co/spaces/Percy3822/Brain/resolve/main/README.md
- Command line
-
hf download hf://spaces/Percy3822/Brain/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Percy3822/Brain/resolve/main/README.md
809 Bytes
| title: "Brain (Router Skeleton)" | |
| emoji: "🧠" | |
| colorFrom: "blue" | |
| colorTo: "green" | |
| sdk: "docker" | |
| pinned: true | |
| # Brain (Skeleton) | |
| A minimal FastAPI service to glue STT/TTS and client UI. It echoes inputs, writes JSONL logs, and streams them via SSE. | |
| ## Endpoints | |
| - GET /health — service status | |
| - POST /process — accepts arbitrary JSON and logs it | |
| - GET /stream/logs — Server-Sent Events stream of recent and live events | |
| - POST /log_error — log an error event | |
| ## Quick Test (PowerShell) | |
| ```powershell | |
| curl.exe --ssl-no-revoke https://<your-brain>.hf.space/health | |
| Invoke-RestMethod -Method Post -Uri 'https://<your-brain>.hf.space/process' ` | |
| -Headers @{ 'Content-Type'='application/json' } ` | |
| -Body '{"test":"hello"}' | |
| curl.exe --ssl-no-revoke "https://<your-brain>.hf.space/stream/logs" |