auto-diffusers 2.0.22__tar.gz → 2.0.24__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.24
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.24",
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.24"
2
2
 
3
3
  from .pipeline_easy import (
4
4
  search_huggingface,
@@ -548,7 +548,6 @@ def file_downloader(
548
548
  displayed_filename=displayed_filename,
549
549
  headers=headers,
550
550
  proxies=proxies,
551
- **kwargs,
552
551
  )
553
552
 
554
553
 
@@ -590,6 +589,7 @@ def search_huggingface(search_word: str, **kwargs) -> Union[str, SearchResult, N
590
589
  pipeline_tag = kwargs.pop("pipeline_tag", None)
591
590
  token = kwargs.pop("token", None)
592
591
  gated = kwargs.pop("gated", False)
592
+ cache_dir = kwargs.pop("cache_dir", None)
593
593
  skip_error = kwargs.pop("skip_error", False)
594
594
 
595
595
  file_list = []
@@ -610,6 +610,7 @@ def search_huggingface(search_word: str, **kwargs) -> Union[str, SearchResult, N
610
610
  revision=revision,
611
611
  token=token,
612
612
  force_download=force_download,
613
+ cache_dir=cache_dir,
613
614
  **kwargs,
614
615
  )
615
616
  else:
@@ -620,8 +621,9 @@ def search_huggingface(search_word: str, **kwargs) -> Union[str, SearchResult, N
620
621
  model_path = hf_hub_download(
621
622
  repo_id=repo_id,
622
623
  filename=weights_name,
623
- force_download=force_download,
624
624
  token=token,
625
+ force_download=force_download,
626
+ cache_dir=cache_dir,
625
627
  )
626
628
  else:
627
629
  model_path = search_word
@@ -694,6 +696,7 @@ def search_huggingface(search_word: str, **kwargs) -> Union[str, SearchResult, N
694
696
  model_path = DiffusionPipeline.download(
695
697
  repo_id,
696
698
  token=token,
699
+ cache_dir=cache_dir,
697
700
  **kwargs,
698
701
  )
699
702
  else:
@@ -717,6 +720,7 @@ def search_huggingface(search_word: str, **kwargs) -> Union[str, SearchResult, N
717
720
  revision=revision,
718
721
  token=token,
719
722
  force_download=force_download,
723
+ cache_dir=cache_dir,
720
724
  )
721
725
 
722
726
  # `pathlib.PosixPath` may be returned
@@ -749,7 +753,7 @@ def search_huggingface(search_word: str, **kwargs) -> Union[str, SearchResult, N
749
753
  )
750
754
 
751
755
  else:
752
- return model_path
756
+ return model_path or download_url
753
757
 
754
758
 
755
759
  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.24
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