Commit 9dd6085b authored by anton-l's avatar anton-l
Browse files

Merge branch 'main' of github.com:huggingface/diffusers

parents decac197 7ba3130c
...@@ -209,6 +209,9 @@ def get_cached_module_file( ...@@ -209,6 +209,9 @@ def get_cached_module_file(
module_file_or_url = os.path.join(pretrained_model_name_or_path, module_file) module_file_or_url = os.path.join(pretrained_model_name_or_path, module_file)
submodule = "local" submodule = "local"
if os.path.isfile(module_file_or_url):
resolved_module_file = module_file_or_url
else:
try: try:
# Load from URL or cache if already cached # Load from URL or cache if already cached
resolved_module_file = cached_download( resolved_module_file = cached_download(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment