MCPcopy Create free account
hub / github.com/SooLab/CGFormer / is_remote_url

Function is_remote_url

bert/file_utils.py:446–448  ·  view source on GitHub ↗
(url_or_filename)

Source from the content-addressed store, hash-verified

444
445
446def is_remote_url(url_or_filename):
447 parsed = urlparse(url_or_filename)
448 return parsed.scheme in ("http", "https")
449
450
451def hf_bucket_url(model_id: str, filename: str, use_cdn=True) -> str:

Callers 4

from_pretrainedMethod · 0.85
cached_pathFunction · 0.85
_from_pretrainedMethod · 0.85
get_config_dictMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected