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