Revert "Continue using uvicorn directly on windows"

This reverts commit 3a5e0cb2d2.
This commit is contained in:
cmdr2 2023-09-01 18:29:19 +05:30
parent 3a5e0cb2d2
commit ee6be74e72

View File

@ -284,10 +284,7 @@ def launch_uvicorn():
setup_amd_environment() setup_amd_environment()
print("\nLaunching uvicorn\n") print("\nLaunching uvicorn\n")
if os_name == "Windows": 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')
os.system(f'uvicorn main:server_api --app-dir "{os.environ["SD_UI_PATH"]}" --port {listen_port} --host {bind_ip} --log-level error')
else:
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')
### Start ### Start