From 969751a19531a2124f492f43bfc8307ddc76940c Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Thu, 6 Jun 2024 17:50:41 +0530 Subject: [PATCH] Use uvicorn.run since it's clearer to read --- scripts/check_modules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check_modules.py b/scripts/check_modules.py index d1392bec..9f31da2c 100644 --- a/scripts/check_modules.py +++ b/scripts/check_modules.py @@ -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