mirror of
https://github.com/open-webui/open-webui
synced 2025-03-09 22:21:04 +00:00
fix: pip install not working
This commit is contained in:
parent
4f886c3944
commit
d7d08b40ed
@ -6,8 +6,6 @@ from pathlib import Path
|
|||||||
import typer
|
import typer
|
||||||
import uvicorn
|
import uvicorn
|
||||||
|
|
||||||
from open_webui.env import GLOBAL_LOG_LEVEL
|
|
||||||
|
|
||||||
app = typer.Typer()
|
app = typer.Typer()
|
||||||
|
|
||||||
KEY_FILE = Path.cwd() / ".webui_secret_key"
|
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
|
import open_webui.main # we need set environment variables before importing main
|
||||||
|
|
||||||
uvicorn.run(
|
uvicorn.run(open_webui.main.app, host=host, port=port, forwarded_allow_ips="*")
|
||||||
open_webui.main.app,
|
|
||||||
host=host,
|
|
||||||
port=port,
|
|
||||||
forwarded_allow_ips="*",
|
|
||||||
log_level=GLOBAL_LOG_LEVEL.lower(),
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
|
Loading…
Reference in New Issue
Block a user