feat(diarization-ui): add FastAPI UI backend with sqlite storage and Ollama analysis pipeline

This commit is contained in:
2026-03-21 13:47:36 +01:00
parent 85a36a0e5e
commit 25793c022c
8 changed files with 269 additions and 78 deletions

View File

@@ -1,20 +1,39 @@
# diarization-ui
Separate UI container for the diarization/transcription API.
## Run
```bash
docker compose up -d --build
```
UI will be available on `http://127.0.0.1:8094/`.
By default it calls API at `http://diarization-api:8093`.
Set `API_BASE` in `.env` if needed.
Eigenes UI-Projekt (separates Repo/Container) für:
- Upload Audio
- Aufruf von `transcribe-diarize` API
- Speichern in SQLite
- LLM-Auswertung via Ollama (Qwen)
## .env
```env
API_BASE=http://diarization-api:8093
API_BASE=http://gx10.aquantico.lan:8093
OLLAMA_BASE_URL=http://gx10.aquantico.lan:11434
OLLAMA_MODEL=qwen3.5:9b
```
## Start (Docker/Compose)
```bash
cp .env.example .env
docker compose up -d --build
```
UI: `http://127.0.0.1:8094/`
## Podman (einzelner Container)
```bash
podman build -t localhost/diarization-ui:latest .
podman rm -f diarization-ui || true
podman run -d --name diarization-ui -p 18094:8094 \
-e API_BASE=http://gx10.aquantico.lan:8093 \
-e OLLAMA_BASE_URL=http://gx10.aquantico.lan:11434 \
-e OLLAMA_MODEL=qwen3.5:9b \
-v diarization_ui_data:/data \
localhost/diarization-ui:latest
```
UI dann: `http://127.0.0.1:18094/`