mirror of
https://github.com/open-webui/open-webui
synced 2025-05-02 12:03:51 +00:00
Update __init__.py
This commit is contained in:
parent
65b5c6c0c7
commit
f17befc853
@ -73,8 +73,15 @@ def serve(
|
||||
os.environ["LD_LIBRARY_PATH"] = ":".join(LD_LIBRARY_PATH)
|
||||
|
||||
import open_webui.main # we need set environment variables before importing main
|
||||
from open_webui.env import UVICORN_WORKERS # Import the workers setting
|
||||
|
||||
uvicorn.run(open_webui.main.app, host=host, port=port, forwarded_allow_ips="*")
|
||||
uvicorn.run(
|
||||
open_webui.main.app,
|
||||
host=host,
|
||||
port=port,
|
||||
forwarded_allow_ips="*",
|
||||
workers=UVICORN_WORKERS
|
||||
)
|
||||
|
||||
|
||||
@app.command()
|
||||
|
Loading…
Reference in New Issue
Block a user