Skip to main content
Version: 0.9.x

Function: isUrlHfRepo()

isUrlHfRepo(url): boolean

Defined in: utils/ResourceFetcherUtils.ts:155

Checks whether the given URL conforms to the huggingface.co/software-mansion schema.

Parameters

url

URL

the URL to the remote file

Returns

boolean

Boolean specifying whether the given URL conforms to our HF repo schema

We are Software Mansion.