"docs/git@developer.sourcefind.cn:chenpangpang/diffusers.git" did not exist on "e25e525fde9bf0cca585c2b610a078b284f5bc87"
Fixing repo_id regex validation error on windows platforms (#4358)
* Fixing repo_id regex validation error on windows platforms
* Validating correct URL with prefix is provided
If we are loading a URL then we don't need to use os.path.join and array slicing to split out a repo_id and file path from an absolute filepath.
Checking if the URL prefix is valid first before doing any URL splitting otherwise we raise a ValueError since neither a valid filepath or URL was provided.
* Style fixes
---------
Co-authored-by:
Sayak Paul <spsayakpaul@gmail.com>
Showing
Please register or sign in to comment