to_url


Description:

public string to_url (string id, string revision = "main")

Resolve URL for downloading this file from the Hub CDN.

Parameters:

id

Hub repo id author/name

revision

Branch or commit (default main)

Returns:

Hub CDN URL huggingface.co/MODEL_ID/resolve/REVISION/RFILENAME (HTTPS scheme prefix).