Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,18 +59,18 @@ def environment_setup(use_q6: bool):
|
|
| 59 |
# Clone ComfyUI if missing
|
| 60 |
if not os.path.isdir("./ComfyUI"):
|
| 61 |
output.append("Cloning ComfyUI repo...")
|
| 62 |
-
proc = subprocess.run("git clone https://github.com/Isi-dev/ComfyUI
|
| 63 |
output.append(proc.stdout + proc.stderr)
|
| 64 |
else:
|
| 65 |
output.append("ComfyUI repo already exists")
|
| 66 |
|
| 67 |
# Clone custom nodes repo
|
| 68 |
-
if not os.path.isdir("
|
| 69 |
output.append("Cloning ComfyUI_GGUF repo...")
|
| 70 |
-
proc = subprocess.run("cd
|
| 71 |
output.append(proc.stdout + proc.stderr)
|
| 72 |
# Install requirements for custom nodes
|
| 73 |
-
proc = subprocess.run("pip install -r
|
| 74 |
output.append(proc.stdout + proc.stderr)
|
| 75 |
else:
|
| 76 |
output.append("ComfyUI_GGUF repo already exists")
|
|
|
|
| 59 |
# Clone ComfyUI if missing
|
| 60 |
if not os.path.isdir("./ComfyUI"):
|
| 61 |
output.append("Cloning ComfyUI repo...")
|
| 62 |
+
proc = subprocess.run("git clone https://github.com/Isi-dev/ComfyUI ./ComfyUI", shell=True, capture_output=True, text=True)
|
| 63 |
output.append(proc.stdout + proc.stderr)
|
| 64 |
else:
|
| 65 |
output.append("ComfyUI repo already exists")
|
| 66 |
|
| 67 |
# Clone custom nodes repo
|
| 68 |
+
if not os.path.isdir("./ComfyUI/custom_nodes/ComfyUI_GGUF"):
|
| 69 |
output.append("Cloning ComfyUI_GGUF repo...")
|
| 70 |
+
proc = subprocess.run("cd ./ComfyUI/custom_nodes && git clone https://github.com/Isi-dev/ComfyUI_GGUF.git", shell=True, capture_output=True, text=True)
|
| 71 |
output.append(proc.stdout + proc.stderr)
|
| 72 |
# Install requirements for custom nodes
|
| 73 |
+
proc = subprocess.run("pip install -r ./ComfyUI/custom_nodes/ComfyUI_GGUF/requirements.txt", shell=True, capture_output=True, text=True)
|
| 74 |
output.append(proc.stdout + proc.stderr)
|
| 75 |
else:
|
| 76 |
output.append("ComfyUI_GGUF repo already exists")
|