Рабочий пайплайн: YouTube -> транскрипция -> выжимка -> Postgres

- новый api/: /pipeline/process (yt-dlp, субтитры или Vosk, LLM/экстрактивная
  суммаризация), /videos, /llm; старый код перенесён в api_legacy/
- web/: Flet UI (flet 0.28.3 + flet-web, порт 8550)
- Dockerfile.api: ffmpeg слоем из mwader/static-ffmpeg, pip с кэш-маунтом
- requirements/pyproject: убраны moviepy, imageio-ffmpeg, битый asyncio
- README с инструкцией запуска и загрузкой Vosk-модели

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jze9
2026-07-14 11:12:46 +05:00
parent 564c9c2d2f
commit 2697e01714
51 changed files with 2313 additions and 284 deletions

12
web/config.py Normal file
View File

@@ -0,0 +1,12 @@
import os
# URL of the FastAPI service inside the docker network.
# In docker-compose this resolves to the `api` service container.
API_BASE_URL = os.getenv("API_BASE_URL", "http://api:8000")
# Port on which the Flet web server listens (exposed by docker-compose).
PORT = int(os.getenv("PORT", "8550"))
# Pipeline can take many minutes for long videos; keep the HTTP timeout generous.
HTTP_TIMEOUT = float(os.getenv("HTTP_TIMEOUT", "1800"))