--- 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://.hf.space/health Invoke-RestMethod -Method Post -Uri 'https://.hf.space/process' ` -Headers @{ 'Content-Type'='application/json' } ` -Body '{"test":"hello"}' curl.exe --ssl-no-revoke "https://.hf.space/stream/logs"