From 2e40719f4e8b7b17dd3498846cc52e754d2b8783 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 7 Sep 2024 05:18:52 +0100 Subject: [PATCH] fix --- backend/open_webui/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/open_webui/__init__.py b/backend/open_webui/__init__.py index 5c4050005..30e83b198 100644 --- a/backend/open_webui/__init__.py +++ b/backend/open_webui/__init__.py @@ -10,14 +10,13 @@ app = typer.Typer() KEY_FILE = Path.cwd() / ".webui_secret_key" -os.environ["FROM_INIT_PY"] = "true" - @app.command() def serve( host: str = "0.0.0.0", port: int = 8080, ): + os.environ["FROM_INIT_PY"] = "true" if os.getenv("WEBUI_SECRET_KEY") is None: typer.echo( "Loading WEBUI_SECRET_KEY from file, not provided as an environment variable."