Daankular's picture
download
raw
353 Bytes
import posixpath
def build_hf_url(repo_id, *path_parts):
repo = (repo_id or "").strip("/")
parts = [part.strip("/\\") for part in path_parts if part]
path = posixpath.join(*parts) if parts else ""
if not path:
return f"https://huggingface.co/{repo}/resolve/main"
return f"https://huggingface.co/{repo}/resolve/main/{path}"

Xet Storage Details

Size:
353 Bytes
·
Xet hash:
b58c738cfd314c4a3a6ed3d56d78e18514ce5670df96916b0c22d06e65794a8f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.