- новый 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>
23 lines
695 B
Python
23 lines
695 B
Python
import asyncio
|
|
from fastapi import FastAPI
|
|
from api.route import default, subscription
|
|
# renamed route modules for clarity
|
|
from api.route import users, installing, media_convert, mp3_ffmpeg_stream, moviepy
|
|
#from api.db.subscription import init_db
|
|
#from api.db.connection import wait_for_db
|
|
|
|
app = FastAPI(title="LLM-infa API")
|
|
|
|
#@app.on_event("startup")
|
|
#async def on_startup():
|
|
# await wait_for_db()
|
|
# await init_db()
|
|
|
|
app.include_router(default.router)
|
|
#app.include_router(subscription.router)
|
|
#app.include_router(users.router)
|
|
app.include_router(installing.router)
|
|
app.include_router(media_convert.router)
|
|
app.include_router(mp3_ffmpeg_stream.router)
|
|
app.include_router(moviepy.router)
|