mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-21 15:53:17 +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")
|
||||
|
||||
from uvicorn import run
|
||||
run("main:server_api", port=listen_port, log_level="error", app_dir=os.environ["SD_UI_PATH"], host=bind_ip, access_log=False)
|
||||
import uvicorn
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user