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

Method initialize

lightx2v/server/api/deps.py:27–32  ·  view source on GitHub ↗
(self, cache_dir: Path, inference_service: DistributedInferenceService, max_queue_size: int = 10)

Source from the content-addressed store, hash-verified

25 self.sensenova_vision_service: Optional[SenseNovaVisionGenerationService] = None
26 self.max_queue_size: int = 10
27
28 @classmethod
29 def get_instance(cls) -> "ServiceContainer":
30 if cls._instance is None:
31 cls._instance = cls()
32 return cls._instance
33
34 def initialize(self, cache_dir: Path, inference_service: DistributedInferenceService, max_queue_size: int = 10):
35 self.file_service = FileService(cache_dir)

Callers 1

initialize_servicesMethod · 0.45

Calls 3

FileServiceClass · 0.85

Tested by

no test coverage detected