fix: misc

pull/753/head^2
Dowon 2025-02-22 10:01:42 +09:00
parent 0ce0a2183b
commit d9250a3d9a
No known key found for this signature in database
GPG Key ID: 9CCE5CDC08E34AD0
1 changed files with 3 additions and 2 deletions

View File

@ -39,8 +39,9 @@ def hf_download(file: str, repo_id: str = REPO_ID, check_remote: bool = True) ->
with suppress(Exception):
return hf_hub_download(repo_id, file, local_files_only=True)
msg = f"[-] ADetailer: Failed to load model {file!r} from huggingface"
print(msg)
if check_remote:
msg = f"[-] ADetailer: Failed to load model {file!r} from huggingface"
print(msg)
return "INVALID"