install deps

This commit is contained in:
pythongosssss 2023-10-20 18:52:04 +01:00
parent 5c08c57250
commit b3d2c6a57e
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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;