Merge pull request #1558 from easydiffusion/beta

Revert "Continue using uvicorn directly on windows"
This commit is contained in:
cmdr2 2023-09-01 18:29:43 +05:30 committed by GitHub
commit d52fb15746
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,9 +284,6 @@ def launch_uvicorn():
setup_amd_environment()
print("\nLaunching uvicorn\n")
if os_name == "Windows":
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