8000 correction to add back environment variable support <3 docker · jaysmartina/llama-cpp-python@3129a0e · GitHub
[go: up one dir, main page]

Skip to content

Commit 3129a0e

Browse files
committed
correction to add back environment variable support <3 docker
1 parent 3ea3193 commit 3129a0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/server/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@
4646
app = create_app(settings=settings)
4747

4848
uvicorn.run(
49-
app, host=settings.host, port=settings.port
49+
app, host=os.getenv("HOST", settings.host), port=int(os.getenv("PORT", settings.port))
5050
)

0 commit comments

Comments
 (0)
0