Spaces:
Runtime error
Runtime error
Nef Caballero
commited on
Commit
·
b061f17
1
Parent(s):
753dcdd
fix attempt for HG error
Browse files
app.py
CHANGED
@@ -75,6 +75,12 @@ def add_extra_model_paths() -> None:
|
|
75 |
"""
|
76 |
Parse the optional extra_model_paths.yaml file and add the parsed paths to the sys.path.
|
77 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
try:
|
79 |
from main import load_extra_path_config
|
80 |
except ImportError:
|
|
|
75 |
"""
|
76 |
Parse the optional extra_model_paths.yaml file and add the parsed paths to the sys.path.
|
77 |
"""
|
78 |
+
# Ensure custom_nodes directory exists
|
79 |
+
custom_nodes_path = os.path.join(os.getcwd(), "custom_nodes")
|
80 |
+
if not os.path.exists(custom_nodes_path):
|
81 |
+
os.makedirs(custom_nodes_path)
|
82 |
+
print(f"Created custom_nodes directory at: {custom_nodes_path}")
|
83 |
+
|
84 |
try:
|
85 |
from main import load_extra_path_config
|
86 |
except ImportError:
|