From d7d08b40edf4672ba3cdfc1bdfe6760cfd368285 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 25 Dec 2024 11:36:40 -0700 Subject: [PATCH] fix: pip install not working --- backend/open_webui/__init__.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/backend/open_webui/__init__.py b/backend/open_webui/__init__.py index ab7e4dd30..de34a8bc7 100644 --- a/backend/open_webui/__init__.py +++ b/backend/open_webui/__init__.py @@ -6,8 +6,6 @@ from pathlib import Path import typer import uvicorn -from open_webui.env import GLOBAL_LOG_LEVEL - app = typer.Typer() KEY_FILE = Path.cwd() / ".webui_secret_key" @@ -57,13 +55,7 @@ def serve( import open_webui.main # we need set environment variables before importing main - uvicorn.run( - open_webui.main.app, - host=host, - port=port, - forwarded_allow_ips="*", - log_level=GLOBAL_LOG_LEVEL.lower(), - ) + uvicorn.run(open_webui.main.app, host=host, port=port, forwarded_allow_ips="*") @app.command()