- новый 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>
13 lines
445 B
Python
13 lines
445 B
Python
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"))
|