mirror of
https://github.com/open-webui/open-webui
synced 2024-12-28 06:42:47 +00:00
chore: format
This commit is contained in:
parent
e10897236d
commit
591aac5e16
@ -6,7 +6,7 @@ from pathlib import Path
|
|||||||
import typer
|
import typer
|
||||||
import uvicorn
|
import uvicorn
|
||||||
|
|
||||||
from open_webui.env import (GLOBAL_LOG_LEVEL)
|
from open_webui.env import GLOBAL_LOG_LEVEL
|
||||||
|
|
||||||
app = typer.Typer()
|
app = typer.Typer()
|
||||||
|
|
||||||
@ -57,7 +57,13 @@ 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(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="*",
|
||||||
|
log_level=GLOBAL_LOG_LEVEL.lower(),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
|
Loading…
Reference in New Issue
Block a user