Use uvicorn.run since it's clearer to read

This commit is contained in:
cmdr2 2024-06-06 17:50:41 +05:30 committed by GitHub
parent 91ad53cd94
commit 969751a195
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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