Spaces:
Running
Running
update app.py
Browse files
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 |
|