MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / __init__

Method __init__

lightx2v/server/api/server.py:22–29  ·  view source on GitHub ↗
(self, max_queue_size: int = 10, app: Optional[FastAPI] = None)

Source from the content-addressed store, hash-verified

20
21class ApiServer:
22 def __init__(self, config, max_queue_size: int = 10, app: Optional[FastAPI] = None):
23 self.app = app or FastAPI(title="LightX2V API", version="1.0.0")
24 self.max_queue_size = max_queue_size
25
26 self.processing_thread = None
27 self.stop_processing = threading.Event()
28
29 self._setup_routes(config)
30
31 def _setup_routes(self, config):
32 @self.app.middleware("http")

Callers

nothing calls this directly

Calls 1

_setup_routesMethod · 0.95

Tested by

no test coverage detected