diff --git a/scripts/check_modules.py b/scripts/check_modules.py index 35cdc6dc..d1392bec 100644 --- a/scripts/check_modules.py +++ b/scripts/check_modules.py @@ -369,9 +369,9 @@ def launch_uvicorn(): setup_amd_environment() print("\nLaunching uvicorn\n") - os.system( - f'python -m uvicorn main:server_api --app-dir "{os.environ["SD_UI_PATH"]}" --port {listen_port} --host {bind_ip} --log-level error' - ) + + 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) ### Start