We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68bc434 commit a162e8aCopy full SHA for a162e8a
timm/models/_hub.py
@@ -535,7 +535,7 @@ def _get_safe_alternatives(filename: str) -> Iterable[str]:
535
yield filename[:-4] + ".safetensors"
536
537
538
-def _get_license_from_hf_hub(model_id: str | None, hf_hub_id: str | None) -> str | None:
+def _get_license_from_hf_hub(model_id: Optional[str], hf_hub_id: Optional[str]) -> Optional[str]:
539
"""Retrieve license information for a model from Hugging Face Hub.
540
541
Fetches the license field from the model card metadata on Hugging Face Hub
0 commit comments