Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,6 @@ sys.path.append(os.path.abspath(os.path.dirname(__file__)))
|
|
| 13 |
|
| 14 |
print("Current working directory:", os.getcwd())
|
| 15 |
print("Absolute path of app.py:", os.path.abspath(os.path.dirname(__file__)))
|
| 16 |
-
utils_path = os.path.abspath('utils')
|
| 17 |
-
print(f"The absolute path of 'utils' is: {utils_path}")
|
| 18 |
|
| 19 |
hf_hub_download(
|
| 20 |
repo_id="Comfy-Org/stable-diffusion-v1-5-archive",
|
|
@@ -91,14 +89,14 @@ def add_extra_model_paths() -> None:
|
|
| 91 |
from main import load_extra_path_config
|
| 92 |
except ImportError:
|
| 93 |
print(
|
| 94 |
-
"Could not import load_extra_path_config from main.py. Looking in
|
| 95 |
)
|
| 96 |
-
from
|
| 97 |
-
# sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "
|
| 98 |
# from extra_config import load_extra_path_config
|
| 99 |
|
| 100 |
extra_model_paths = find_path("extra_model_paths.yaml")
|
| 101 |
-
|
| 102 |
if extra_model_paths is not None:
|
| 103 |
load_extra_path_config(extra_model_paths)
|
| 104 |
else:
|
|
|
|
| 13 |
|
| 14 |
print("Current working directory:", os.getcwd())
|
| 15 |
print("Absolute path of app.py:", os.path.abspath(os.path.dirname(__file__)))
|
|
|
|
|
|
|
| 16 |
|
| 17 |
hf_hub_download(
|
| 18 |
repo_id="Comfy-Org/stable-diffusion-v1-5-archive",
|
|
|
|
| 89 |
from main import load_extra_path_config
|
| 90 |
except ImportError:
|
| 91 |
print(
|
| 92 |
+
"Could not import load_extra_path_config from main.py. Looking in util.extra_config instead."
|
| 93 |
)
|
| 94 |
+
from ut.extra_config import load_extra_path_config
|
| 95 |
+
# sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "ut")))
|
| 96 |
# from extra_config import load_extra_path_config
|
| 97 |
|
| 98 |
extra_model_paths = find_path("extra_model_paths.yaml")
|
| 99 |
+
-
|
| 100 |
if extra_model_paths is not None:
|
| 101 |
load_extra_path_config(extra_model_paths)
|
| 102 |
else:
|