LXC-Frontend (FastAPI + HTML/JS): - Audio-Upload (MP3/WAV/M4A/MP4/OGG/FLAC, max. 500 MB) - SQLite Job-Store, BackgroundTask-Pipeline - Job-Liste mit Live-Status, Downloads (DOCX + JSON) - Mac-Health-Indicator im UI Mac-Worker (FastAPI): - /api/transcribe (lightning-whisper-mlx | faster-whisper | mock) - /api/summarize + /api/protocol via Ollama (llama3.1:8b) - /api/export/docx via python-docx Deploy: - systemd-Service, Nginx Reverse-Proxy - deploy/install.sh: idempotentes LXC-Setup Doku: README.md, lxc-frontend/README.md, mac-worker/README.md
25 lines
676 B
Python
25 lines
676 B
Python
from pathlib import Path
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore")
|
|
|
|
app_host: str = "0.0.0.0"
|
|
app_port: int = 8080
|
|
|
|
whisper_engine: str = "mlx" # mlx | faster | mock
|
|
whisper_model: str = "large-v3"
|
|
whisper_batch_size: int = 12
|
|
whisper_language: str = "de"
|
|
|
|
ollama_url: str = "http://127.0.0.1:11434"
|
|
ollama_model: str = "llama3.1:8b"
|
|
ollama_timeout: int = 600
|
|
|
|
work_dir: Path = Path("/tmp/voice-agent-mac")
|
|
|
|
|
|
settings = Settings()
|
|
settings.work_dir.mkdir(parents=True, exist_ok=True)
|