Refactor code structure (#106)

* refactor: rename searcher.py to information.py

* refactor: move the routes into each sub-modules

* refactor: move services's func into sub-modules
This commit is contained in:
Hayden
2025-01-30 21:06:24 +08:00
committed by GitHub
parent 4df226be82
commit 0575124d35
6 changed files with 460 additions and 491 deletions

View File

@@ -133,7 +133,11 @@ def download_web_distribution(version: str):
print_error(f"An unexpected error occurred: {e}")
def resolve_model_base_paths():
def resolve_model_base_paths() -> dict[str, list[str]]:
"""
Resolve model base paths.
eg. { "checkpoints": ["path/to/checkpoints"] }
"""
folders = list(folder_paths.folder_names_and_paths.keys())
model_base_paths = {}
folder_black_list = ["configs", "custom_nodes"]