mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 00:03:20 +01:00
Use uvicorn.run since it's clearer to read
This commit is contained in:
parent
91ad53cd94
commit
969751a195
@ -370,8 +370,8 @@ def launch_uvicorn():
|
|||||||
|
|
||||||
print("\nLaunching uvicorn\n")
|
print("\nLaunching uvicorn\n")
|
||||||
|
|
||||||
from uvicorn import run
|
import uvicorn
|
||||||
run("main:server_api", port=listen_port, log_level="error", app_dir=os.environ["SD_UI_PATH"], host=bind_ip, access_log=False)
|
uvicorn.run("main:server_api", port=listen_port, log_level="error", app_dir=os.environ["SD_UI_PATH"], host=bind_ip, access_log=False)
|
||||||
|
|
||||||
|
|
||||||
### Start
|
### Start
|
||||||
|
Loading…
Reference in New Issue
Block a user