Skip to content

Commit ac19967

Browse files
committed
minor cleanup
1 parent dfe1cbb commit ac19967

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

‎modules/api/ray.py‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ def ray_only():
1919
if "RAY_DOCKER" in os.environ:
2020
print("starting ray in docker")
2121
serve.start(detached=True, http_options={
22-
"host": os.environ.get("RAY_IP", "0.0.0.0"),
23-
"port": int(os.environ.get("RAY_PORT", 8000))
24-
}
25-
)
22+
"host": os.environ.get("RAY_IP", "0.0.0.0"),
23+
"port": int(os.environ.get("RAY_PORT", 8000))
24+
}
25+
)
2626
else:
27-
serve.start()
27+
serve.start(
28+
http_options={
29+
"host": os.environ.get("RAY_IP", "0.0.0.0"),
30+
"port": int(os.environ.get("RAY_PORT", 8000))
31+
}
32+
)
2833
print(f"Starting Raypi on port {os.environ.get('RAY_PORT', 8000)}")
2934
serve.run(Raypi.bind(), port=int(os.environ.get("RAY_PORT", 8000)), route_prefix="/sdapi/v1") #route_prefix="/sdapi/v1" # Call the launch_ray method to get the FastAPI app
3035
print("Done setting up replicas! Now accepting requests...")

0 commit comments

Comments
 (0)