diffusers
796c0153 - Fixing repo_id regex validation error on windows platforms (#4358)

Commit
2 years ago
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>
Author
Parents
Loading