Update preview_server.py to listen on all interfaces

This commit is contained in:
Kasisnu
2024-04-10 21:10:57 +05:30
committed by GitHub
parent e4fc81abdb
commit f948173645
+1 -1
View File
@@ -333,6 +333,6 @@ if __name__ == "__main__":
print(f"Server failed to start in {SERVER_START_TIMEOUT} seconds")
exit(1)
print("ComfyUI server running, starting FastAPI server")
uvicorn.run(app, host="127.0.0.1", port=8000)
uvicorn.run(app, host="0.0.0.0", port=8000)
# cleanup
terminate_process(comfyui_process)