FastAPI + PyAV + transformers SAM2.1 on MPS. Relative-URL frontend (works bare or behind digalot.fyi/rotogod/), ROTOGOD_ROOTS clip-path allowlist, fwd+rev propagation, ProRes 4444 / WebM / matte / greenscreen exports. deploy/rotogod.launchd.plist = always-on tailnet-bound instance. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
17 lines
405 B
Python
17 lines
405 B
Python
import argparse
|
|
import os
|
|
import sys
|
|
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
import uvicorn
|
|
|
|
from rotogod.server import app
|
|
|
|
if __name__ == "__main__":
|
|
p = argparse.ArgumentParser()
|
|
p.add_argument("--port", type=int, default=8484)
|
|
p.add_argument("--host", default="127.0.0.1")
|
|
a = p.parse_args()
|
|
uvicorn.run(app, host=a.host, port=a.port, log_level="warning")
|