mattb512 commited on
Commit
b745609
1 Parent(s): 1ad2e11

replace localhost

Browse files
Files changed (1) hide show
  1. interactive_demo.py +3 -3
interactive_demo.py CHANGED
@@ -230,7 +230,7 @@ class DemoConfig:
230
  # Model Worker Parameters
231
  host: str = "0.0.0.0"
232
  port: int = 40000
233
- controller_address: str = "http://localhost:10000"
234
  limit_model_concurrency: int = 5
235
  stream_interval: int = 1
236
  no_register: bool = False
@@ -244,7 +244,7 @@ class DemoConfig:
244
  def __post_init__(self) -> None:
245
  self.run_dir = self.model_dir
246
  self.model_name = MODEL_ID_TO_NAME[str(self.model_id)]
247
- self.worker_address = f"http://localhost:{self.port}"
248
 
249
  # fmt: on
250
 
@@ -266,7 +266,7 @@ def interactive_demo(cfg: DemoConfig):
266
  worker = ModelWorker(
267
  cfg.controller_address, cfg.worker_address, worker_id, cfg.no_register, vlm, cfg.model_name
268
  )
269
- uvicorn.run(app, host=cfg.host, port=cfg.port, log_level="info")
270
 
271
 
272
  if __name__ == "__main__":
 
230
  # Model Worker Parameters
231
  host: str = "0.0.0.0"
232
  port: int = 40000
233
+ controller_address: str = "http://127.0.0.1:10000"
234
  limit_model_concurrency: int = 5
235
  stream_interval: int = 1
236
  no_register: bool = False
 
244
  def __post_init__(self) -> None:
245
  self.run_dir = self.model_dir
246
  self.model_name = MODEL_ID_TO_NAME[str(self.model_id)]
247
+ self.worker_address = f"http://127.0.0.1:{self.port}"
248
 
249
  # fmt: on
250
 
 
266
  worker = ModelWorker(
267
  cfg.controller_address, cfg.worker_address, worker_id, cfg.no_register, vlm, cfg.model_name
268
  )
269
+ uvicorn.run(app, host=cfg.host, port=cfg.port, log_level="debug")
270
 
271
 
272
  if __name__ == "__main__":