Files
许文涛andGitHub 9faef69105 fix: fail fast when ffmpeg is unavailable
Probe FFmpeg in the shared task preflight so API, CLI, and WebUI
fail before costly generation steps. Skip the probe for script-only and
terms-only runs, and surface actionable configuration guidance.
2026-08-22 07:43:48 +08:00

19 lines
566 B
Python

import uvicorn
from loguru import logger
from app.config import config
if __name__ == "__main__":
logger.info(
"start server, docs: http://127.0.0.1:" + str(config.listen_port) + "/docs"
)
# FFmpeg 探测已经移到 app/services/task.py 的共享任务流水线里,这样
# API、CLI 和 WebUI 三条路径都能统一覆盖,这里不再单独检查。
uvicorn.run(
app="app.asgi:app",
host=config.listen_host,
port=config.listen_port,
reload=config.reload_debug,
log_level="warning",
)