auto-diffusers 2.0.22__tar.gz → 2.0.23__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto_diffusers
3
- Version: 2.0.22
3
+ Version: 2.0.23
4
4
  Summary: diffusers with search engine
5
5
  Home-page: https://github.com/suzukimain/auto_diffusers
6
6
  Author: suzukimain
@@ -21,6 +21,7 @@ Requires-Python: >=3.8.0
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  Requires-Dist: diffusers>=0.32.0
24
+ Requires-Dist: transformers>=4.41.2
24
25
 
25
26
  # auto_diffusers
26
27
 
@@ -6,6 +6,7 @@ from setuptools import find_packages, setup
6
6
 
7
7
  _deps = [
8
8
  "diffusers>=0.32.0",
9
+ "transformers>=4.41.2",
9
10
  ]
10
11
 
11
12
  deps = {b: a for a, b in (re.findall(r"^(([^!=<>~]+)(?:[!=<>~].*)?$)", x)[0] for x in _deps)}
@@ -19,7 +20,7 @@ version_range_max = max(sys.version_info[1], 10) + 1
19
20
 
20
21
  setup(
21
22
  name="auto_diffusers",
22
- version="2.0.22",
23
+ version="2.0.23",
23
24
  description="diffusers with search engine",
24
25
  long_description=open("README.md", "r", encoding="utf-8").read(),
25
26
  long_description_content_type="text/markdown",
@@ -1,4 +1,4 @@
1
- __version__ = "2.0.22"
1
+ __version__ = "2.0.23"
2
2
 
3
3
  from .pipeline_easy import (
4
4
  search_huggingface,
@@ -590,6 +590,7 @@ def search_huggingface(search_word: str, **kwargs) -> Union[str, SearchResult, N
590
590
  pipeline_tag = kwargs.pop("pipeline_tag", None)
591
591
  token = kwargs.pop("token", None)
592
592
  gated = kwargs.pop("gated", False)
593
+ cache_dir = kwargs.pop("cache_dir", None)
593
594
  skip_error = kwargs.pop("skip_error", False)
594
595
 
595
596
  file_list = []
@@ -610,6 +611,7 @@ def search_huggingface(search_word: str, **kwargs) -> Union[str, SearchResult, N
610
611
  revision=revision,
611
612
  token=token,
612
613
  force_download=force_download,
614
+ cache_dir=cache_dir,
613
615
  **kwargs,
614
616
  )
615
617
  else:
@@ -620,8 +622,9 @@ def search_huggingface(search_word: str, **kwargs) -> Union[str, SearchResult, N
620
622
  model_path = hf_hub_download(
621
623
  repo_id=repo_id,
622
624
  filename=weights_name,
623
- force_download=force_download,
624
625
  token=token,
626
+ force_download=force_download,
627
+ cache_dir=cache_dir,
625
628
  )
626
629
  else:
627
630
  model_path = search_word
@@ -694,6 +697,7 @@ def search_huggingface(search_word: str, **kwargs) -> Union[str, SearchResult, N
694
697
  model_path = DiffusionPipeline.download(
695
698
  repo_id,
696
699
  token=token,
700
+ cache_dir=cache_dir,
697
701
  **kwargs,
698
702
  )
699
703
  else:
@@ -717,6 +721,7 @@ def search_huggingface(search_word: str, **kwargs) -> Union[str, SearchResult, N
717
721
  revision=revision,
718
722
  token=token,
719
723
  force_download=force_download,
724
+ cache_dir=cache_dir,
720
725
  )
721
726
 
722
727
  # `pathlib.PosixPath` may be returned
@@ -749,7 +754,7 @@ def search_huggingface(search_word: str, **kwargs) -> Union[str, SearchResult, N
749
754
  )
750
755
 
751
756
  else:
752
- return model_path
757
+ return model_path or download_url
753
758
 
754
759
 
755
760
  def search_civitai(search_word: str, **kwargs) -> Union[str, SearchResult, None]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto_diffusers
3
- Version: 2.0.22
3
+ Version: 2.0.23
4
4
  Summary: diffusers with search engine
5
5
  Home-page: https://github.com/suzukimain/auto_diffusers
6
6
  Author: suzukimain
@@ -21,6 +21,7 @@ Requires-Python: >=3.8.0
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  Requires-Dist: diffusers>=0.32.0
24
+ Requires-Dist: transformers>=4.41.2
24
25
 
25
26
  # auto_diffusers
26
27
 
@@ -0,0 +1,2 @@
1
+ diffusers>=0.32.0
2
+ transformers>=4.41.2
@@ -1 +0,0 @@
1
- diffusers>=0.32.0
File without changes