auto-diffusers 1.7.7__py3-none-any.whl → 1.8.2__py3-none-any.whl

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.
@@ -32,7 +32,7 @@ class Search_cls(Config_Mix):
32
32
  self.model_format = model_format
33
33
  self.single_file_only = True if "single_file" == model_format else False
34
34
 
35
- self.return_dict["model_status"]["search_word"] = seach_word
35
+ self.return_dict["model_status"]["search_word"] = search_word
36
36
  self.return_dict["model_status"]["local"] = True if download or local_file_only else False
37
37
 
38
38
  self.hf_login(hf_token)
@@ -213,8 +213,11 @@ class Huggingface(Basic_config):
213
213
  )
214
214
  model_dict = asdict(hf_info)
215
215
  # When using asdict, securityStatus is not added to the dictionary and must be added separately.
216
- if "securityStatus" not in model_dict.keys():
217
- model_dict["securityStatus"] = hf_info.__dict__["securityStatus"]
216
+ try:
217
+ if "securityStatus" not in model_dict.keys():
218
+ model_dict["securityStatus"] = hf_info.__dict__["securityStatus"]
219
+ except KeyError:
220
+ self.logger.info("The key for securityStatus does not exist.")
218
221
  return model_dict
219
222
 
220
223
 
@@ -236,8 +239,8 @@ class Huggingface(Basic_config):
236
239
  def hf_security_check(self,check_dict) -> int:
237
240
  """
238
241
  Return:
239
- 0 for models that passed the scan,
240
- 1 for models not scanned or in error, and
242
+ 0 for models that passed the scan or in error,
243
+ 1 for models not scanned , and
241
244
  2 if there is a security risk.
242
245
  """
243
246
  try:
@@ -249,7 +252,9 @@ class Huggingface(Basic_config):
249
252
  else:
250
253
  return 0
251
254
  except KeyError:
252
- return 2
255
+ self.logger.warning("Failed to acquire security status. Use with caution.")
256
+ return 0
257
+
253
258
 
254
259
 
255
260
  def check_if_file_exists(self,hf_repo_info):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto_diffusers
3
- Version: 1.7.7
3
+ Version: 1.8.2
4
4
  Summary: Customized diffusers with model search and other functions.
5
5
  Home-page: https://github.com/suzukimain/auto_diffusers
6
6
  Author: suzukimain
@@ -50,10 +50,13 @@ Requires-Dist: natsort
50
50
  + [License](#License)
51
51
  + [Acknowledgement](#Acknowledgement)
52
52
 
53
+ ## Announcements📢
54
+ Due to changes in the `hf_api` specification, the function was stopped for a while. \
55
+ I apologize for any inconvenience this may have caused.
56
+
53
57
  ## About The Project<a name = "About_The_Project"></a>
54
58
  Enhance the functionality of diffusers.
55
59
  * Search models from huggingface and Civitai.
56
- (etc..)
57
60
 
58
61
 
59
62
  ## How to use<a name = "How_to_use"></a>
@@ -4,9 +4,9 @@ auto_diffusers/checker/__init__.py,sha256=CeIA8xhkpls13fs3jUpkFL509_mW4bAK5kdrJW
4
4
  auto_diffusers/checker/memorize_config.py,sha256=SBPdxoMvNUJ0nZHQKNRrINirRMOA22nnaqFR4zgFuNI,2237
5
5
  auto_diffusers/model_path/__init__.py,sha256=ggvMuZ0KkqOFw-ngAkCteMRnRURxcIIAL8uXZEvRcSg,83
6
6
  auto_diffusers/model_path/mix_class.py,sha256=OMHHHK_1lZpA_M4oBhgqJBF16kGtjOoe3oKT6hAXR_8,265
7
- auto_diffusers/model_path/perform_path_search.py,sha256=lCQq2qplJqKF1AiAESOBgc5YBEQLgvBjGJN-bhgp4Gs,13028
7
+ auto_diffusers/model_path/perform_path_search.py,sha256=4p2We8o-KKrb01os4Nxp-zfbAvCoXLtYNGijXaxX49s,13029
8
8
  auto_diffusers/model_path/search_civitai.py,sha256=OCYoT19rpQBfFJYj67bnZ3zPSKQ0_ryANKZKut19qfA,16756
9
- auto_diffusers/model_path/search_hugface.py,sha256=cy6Rshyap_26R2_isviryuvbq2-_Kmzez587eaGe4Y4,22901
9
+ auto_diffusers/model_path/search_hugface.py,sha256=PS9K2hzFDU_CUN-Hsivg-ctVBEe2vvyzWWNO3w6vPX0,23112
10
10
  auto_diffusers/setup/__init__.py,sha256=XcM_nPfzhHFdAnO1nOC1q_Mb0x5L4BeRDEEsXZLSQNQ,37
11
11
  auto_diffusers/setup/base_config.py,sha256=z4ZpogtNf-8h5dnbrkeQb8yp5S_dQh2Fr4s1MnJmJ8Y,5106
12
12
  auto_diffusers/setup/data_class.py,sha256=Ldg4Fd-c3qbY6N7p7dqCfX6gWUfCPb_MnV80W5rw8KU,6021
@@ -17,8 +17,8 @@ auto_diffusers/utils/get_custom_logger.py,sha256=y8cRyt9y3fFR6eiXiXeV0Nk100F_osm
17
17
  auto_diffusers/utils/hide_warning.py,sha256=-KKPkpNh_0SHisV4oZXsI2V68-f36QhU0JOZg9gZgfU,222
18
18
  auto_diffusers/utils/process_bar.py,sha256=t6KrN_E0CP_vppTmlm6CVKHlyZMMYkbMcZoeSm42Fjs,4781
19
19
  auto_diffusers/utils/run_download.py,sha256=2pD2ZxR62dh0HoBaGQQRLyykIz7rjJ2BCSAyWZoFg4A,3839
20
- auto_diffusers-1.7.7.dist-info/LICENSE,sha256=zf63-8GgkO9_0eeAUPRJu_yrc7xhedOdjlJzi6WhelM,1497
21
- auto_diffusers-1.7.7.dist-info/METADATA,sha256=mHKFVj5EJtRMHg3ly-IngB2e4JyoBnOkX2U7yT9gJx8,6700
22
- auto_diffusers-1.7.7.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
23
- auto_diffusers-1.7.7.dist-info/top_level.txt,sha256=iYkbnc9T-VKVnoCP6AufdXcDUfUaLZ_yMG-USuYf4UQ,15
24
- auto_diffusers-1.7.7.dist-info/RECORD,,
20
+ auto_diffusers-1.8.2.dist-info/LICENSE,sha256=zf63-8GgkO9_0eeAUPRJu_yrc7xhedOdjlJzi6WhelM,1497
21
+ auto_diffusers-1.8.2.dist-info/METADATA,sha256=dH08zPdhvoWc9UsPIxXXDswnX10oFO-1qe52IVdfweA,6856
22
+ auto_diffusers-1.8.2.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
23
+ auto_diffusers-1.8.2.dist-info/top_level.txt,sha256=iYkbnc9T-VKVnoCP6AufdXcDUfUaLZ_yMG-USuYf4UQ,15
24
+ auto_diffusers-1.8.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5