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

Method launch_chat_server

lightx2v/utils/va_reader_omni.py:153–159  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 self.model_runner = model_runner
152
153 def launch_chat_server(self):
154 env = {
155 "RUST_LOG": "info,duplex_server=debug,backend_5o=debug",
156 "LD_LIBRARY_PATH": os.environ.get("LD_LIBRARY_PATH", "") + ":" + os.path.join(self.omni_work_dir, "lib/"),
157 "PATH": os.environ["PATH"] + ":" + os.path.join(self.omni_work_dir, "bin/"),
158 }
159 self.chatter_proc = subprocess.Popen(self.chat_server_cmd, env=env, cwd=self.omni_work_dir)
160
161 @staticmethod
162 def select_and_bind(socket: zmq.Socket) -> str:

Callers 1

startMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected