Hermes Bot commited on
Commit ·
4734897
1
Parent(s): 35cd9cd
Fix stray plus line in setup.py
Browse files
comfy_integration/setup.py
CHANGED
|
@@ -86,8 +86,8 @@ def initialize_comfyui():
|
|
| 86 |
# Ensure torch treats CUDA as unavailable on CPU‑only environment.
|
| 87 |
import torch
|
| 88 |
torch.cuda.is_available = lambda: False
|
| 89 |
-
|
| 90 |
-
|
| 91 |
+ external_model_mgmt_path = os.path.join(APP_DIR, "comfy", "model_management.py")
|
| 92 |
+ if os.path.exists(external_model_mgmt_path):
|
| 93 |
+ try:
|
|
|
|
| 86 |
# Ensure torch treats CUDA as unavailable on CPU‑only environment.
|
| 87 |
import torch
|
| 88 |
torch.cuda.is_available = lambda: False
|
| 89 |
+
|
| 90 |
+
# Apply patch to the external ComfyUI model_management before import.
|
| 91 |
+ external_model_mgmt_path = os.path.join(APP_DIR, "comfy", "model_management.py")
|
| 92 |
+ if os.path.exists(external_model_mgmt_path):
|
| 93 |
+ try:
|