From 3129a0e7e581f6edd29a497a13ab014687867134 Mon Sep 17 00:00:00 2001 From: Gabor Date: Sun, 11 Jun 2023 01:11:24 +0100 Subject: [PATCH] correction to add back environment variable support <3 docker --- llama_cpp/server/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_cpp/server/__main__.py b/llama_cpp/server/__main__.py index 1de4548..748a2af 100644 --- a/llama_cpp/server/__main__.py +++ b/llama_cpp/server/__main__.py @@ -46,5 +46,5 @@ if __name__ == "__main__": app = create_app(settings=settings) uvicorn.run( - app, host=settings.host, port=settings.port + app, host=os.getenv("HOST", settings.host), port=int(os.getenv("PORT", settings.port)) )