Browse Source

Merge pull request #12883 from Classic298/patch-1

fix: UVICORN_WORKERS __init__.py pass application as string
Tim Jaeryang Baek 3 months ago
parent
commit
30e84adb51
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/open_webui/__init__.py

+ 1 - 1
backend/open_webui/__init__.py

@@ -76,7 +76,7 @@ def serve(
     from open_webui.env import UVICORN_WORKERS  # Import the workers setting
     from open_webui.env import UVICORN_WORKERS  # Import the workers setting
 
 
     uvicorn.run(
     uvicorn.run(
-        open_webui.main.app,
+        "open_webui.main:app",
         host=host,
         host=host,
         port=port,
         port=port,
         forwarded_allow_ips="*",
         forwarded_allow_ips="*",