fix(type_utils): accept hf:// URLs in looks_like_model_file

This commit is contained in:
Dariusz L
2026-07-02 04:46:40 +02:00
parent 9951e1fbd5
commit 8ef52c8e69
+1 -1
View File
@@ -582,7 +582,7 @@ def looks_like_model_file(url: str, expected_filename: str = "") -> bool:
from urllib.parse import unquote, urlparse
text = str(url or "").strip()
if not text.startswith(("http://", "https://")):
if not text.startswith(("http://", "https://", "hf://")):
return False
try:
parsed = urlparse(text)