#!/usr/bin/env python3 """Moxie bench entry point. python bench/run.py --port 8787 # auto backend (mock here) python bench/run.py --backend comfy --comfyui-url http://127.0.0.1:8188 """ from __future__ import annotations import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parent)) from app.config import BenchConfig # noqa: E402 def main() -> None: import uvicorn from app.server import create_app cfg = BenchConfig.from_args() backend = cfg.resolve_backend() print(f"[moxie-bench] backend={backend} http://{cfg.host}:{cfg.port}") if backend == "comfy": print(f"[moxie-bench] driving ComfyUI at {cfg.comfyui_url}") else: print("[moxie-bench] self-contained mock renderer (ffmpeg + numpy)") uvicorn.run(create_app(cfg), host=cfg.host, port=cfg.port, log_level="info") if __name__ == "__main__": main()