Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,12 +67,14 @@ def import_custom_nodes() -> None:
|
|
| 67 |
if not os.path.exists("ComfyUI"):
|
| 68 |
subprocess.run(["git", "clone", "https://github.com/comfyanonymous/ComfyUI.git"])
|
| 69 |
|
| 70 |
-
subprocess.run(["
|
| 71 |
|
| 72 |
custom_node_path = "ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale"
|
| 73 |
if not os.path.exists(custom_node_path):
|
| 74 |
subprocess.run(["git", "clone", "https://github.com/ssitu/ComfyUI_UltimateSDUpscale.git", custom_node_path])
|
| 75 |
|
|
|
|
|
|
|
| 76 |
# Create model directories
|
| 77 |
os.makedirs("ComfyUI/models/diffusion_models", exist_ok=True)
|
| 78 |
os.makedirs("ComfyUI/models/clip", exist_ok=True)
|
|
|
|
| 67 |
if not os.path.exists("ComfyUI"):
|
| 68 |
subprocess.run(["git", "clone", "https://github.com/comfyanonymous/ComfyUI.git"])
|
| 69 |
|
| 70 |
+
subprocess.run(["pip", "install", "-r", "ComfyUI/requirements.txt"])
|
| 71 |
|
| 72 |
custom_node_path = "ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale"
|
| 73 |
if not os.path.exists(custom_node_path):
|
| 74 |
subprocess.run(["git", "clone", "https://github.com/ssitu/ComfyUI_UltimateSDUpscale.git", custom_node_path])
|
| 75 |
|
| 76 |
+
subprocess.run(["pip", "install", "spandrel", "kornia"])
|
| 77 |
+
|
| 78 |
# Create model directories
|
| 79 |
os.makedirs("ComfyUI/models/diffusion_models", exist_ok=True)
|
| 80 |
os.makedirs("ComfyUI/models/clip", exist_ok=True)
|