File size: 809 Bytes
ddd62aa
687cbd1
ddd62aa
687cbd1
 
ddd62aa
687cbd1
ddd62aa
0e3cac8
00a7c4e
ddd62aa
00a7c4e
1d100da
00a7c4e
ddd62aa
00a7c4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
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"