edgarhnd commited on
Commit
fce493a
·
verified ·
1 Parent(s): 13b75da

remove cached_dowload

Browse files
diffusers/utils/dynamic_modules_utils.py CHANGED
@@ -25,7 +25,7 @@ from pathlib import Path
25
  from typing import Dict, Optional, Union
26
  from urllib import request
27
 
28
- from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
29
  from packaging import version
30
 
31
  from .. import __version__
@@ -282,7 +282,7 @@ def get_cached_module_file(
282
  # community pipeline on GitHub
283
  github_url = COMMUNITY_PIPELINES_URL.format(revision=revision, pipeline=pretrained_model_name_or_path)
284
  try:
285
- resolved_module_file = cached_download(
286
  github_url,
287
  cache_dir=cache_dir,
288
  force_download=force_download,
 
25
  from typing import Dict, Optional, Union
26
  from urllib import request
27
 
28
+ from huggingface_hub import HfFolder, hf_hub_download, model_info
29
  from packaging import version
30
 
31
  from .. import __version__
 
282
  # community pipeline on GitHub
283
  github_url = COMMUNITY_PIPELINES_URL.format(revision=revision, pipeline=pretrained_model_name_or_path)
284
  try:
285
+ resolved_module_file = hf_hub_download(
286
  github_url,
287
  cache_dir=cache_dir,
288
  force_download=force_download,