mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-14 23:42:35 +08:00
install deps
This commit is contained in:
parent
5c08c57250
commit
b3d2c6a57e
4
.github/workflows/test-ui.yaml
vendored
4
.github/workflows/test-ui.yaml
vendored
@ -13,6 +13,10 @@ jobs:
|
|||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
- name: Install requirements
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
|
|||||||
@ -50,10 +50,14 @@ async function setup() {
|
|||||||
console.log("Starting ComfyUI server...");
|
console.log("Starting ComfyUI server...");
|
||||||
|
|
||||||
let python = resolve("../../python_embeded/python.exe");
|
let python = resolve("../../python_embeded/python.exe");
|
||||||
if (!existsSync(python)) {
|
let args;
|
||||||
|
if (existsSync(python)) {
|
||||||
|
args = ["-s", "ComfyUI/main.py"];
|
||||||
|
} else {
|
||||||
python = "python";
|
python = "python";
|
||||||
|
args = ["main.py"];
|
||||||
}
|
}
|
||||||
child = spawn(python, ["-s", "ComfyUI/main.py", "--cpu"], { cwd: "../.." });
|
child = spawn(python, [...args, "--cpu"], { cwd: "../.." });
|
||||||
child.on("error", (err) => {
|
child.on("error", (err) => {
|
||||||
console.log(`Server error (${err})`);
|
console.log(`Server error (${err})`);
|
||||||
i = 30;
|
i = 30;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user