zyliu commited on
Commit
20bbc85
1 Parent(s): 0a9a2be

update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -333,7 +333,7 @@ def http_bot(
333
  controller_url + "/get_worker_address", json={"model": model_name}
334
  )
335
  worker_addr = ret.json()["address"]
336
- if worker_addr.startswith("http://0.0.0.0"):
337
  worker_addr = worker_addr.replace("0.0.0.0", args.worker_ip)
338
  logger.info(f"model_name: {model_name}, worker_addr: {worker_addr}")
339
 
 
333
  controller_url + "/get_worker_address", json={"model": model_name}
334
  )
335
  worker_addr = ret.json()["address"]
336
+ if worker_addr.startswith("http://0.0.0.0") and args.worker_ip:
337
  worker_addr = worker_addr.replace("0.0.0.0", args.worker_ip)
338
  logger.info(f"model_name: {model_name}, worker_addr: {worker_addr}")
339