This commit is contained in:
pythongosssss 2023-10-20 19:06:26 +01:00
parent b3d2c6a57e
commit ecd7b45d32

View File

@ -51,13 +51,16 @@ async function setup() {
let python = resolve("../../python_embeded/python.exe");
let args;
let cwd;
if (existsSync(python)) {
args = ["-s", "ComfyUI/main.py"];
cwd = "../..";
} else {
python = "python";
args = ["main.py"];
cwd = "..";
}
child = spawn(python, [...args, "--cpu"], { cwd: "../.." });
child = spawn(python, [...args, "--cpu"], { cwd });
child.on("error", (err) => {
console.log(`Server error (${err})`);
i = 30;