huggingface-hub 0.23.3__py3-none-any.whl → 0.23.5__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.

Potentially problematic release.


This version of huggingface-hub might be problematic. Click here for more details.

@@ -46,7 +46,7 @@ import sys
46
46
  from typing import TYPE_CHECKING
47
47
 
48
48
 
49
- __version__ = "0.23.3"
49
+ __version__ = "0.23.5"
50
50
 
51
51
  # Alphabetical order of definitions is ensured in tests
52
52
  # WARNING: any comment added in this dictionary definition will be lost when
@@ -1,9 +1,21 @@
1
1
  import inspect
2
2
  import json
3
3
  import os
4
+ import warnings
4
5
  from dataclasses import asdict, dataclass, is_dataclass
5
6
  from pathlib import Path
6
- from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Type, TypeVar, Union, get_args
7
+ from typing import (
8
+ TYPE_CHECKING,
9
+ Any,
10
+ Callable,
11
+ Dict,
12
+ List,
13
+ Optional,
14
+ Tuple,
15
+ Type,
16
+ TypeVar,
17
+ Union,
18
+ )
7
19
 
8
20
  from .constants import CONFIG_NAME, PYTORCH_WEIGHTS_NAME, SAFETENSORS_SINGLE_FILE
9
21
  from .file_download import hf_hub_download
@@ -15,8 +27,10 @@ from .utils import (
15
27
  SoftTemporaryDirectory,
16
28
  is_jsonable,
17
29
  is_safetensors_available,
30
+ is_simple_optional_type,
18
31
  is_torch_available,
19
32
  logging,
33
+ unwrap_simple_optional_type,
20
34
  validate_hf_hub_args,
21
35
  )
22
36
 
@@ -85,8 +99,8 @@ class ModelHubMixin:
85
99
  URL of the library documentation. Used to generate model card.
86
100
  model_card_template (`str`, *optional*):
87
101
  Template of the model card. Used to generate model card. Defaults to a generic template.
88
- languages (`List[str]`, *optional*):
89
- Languages supported by the library. Used to generate model card.
102
+ language (`str` or `List[str]`, *optional*):
103
+ Language supported by the library. Used to generate model card.
90
104
  library_name (`str`, *optional*):
91
105
  Name of the library integrating ModelHubMixin. Used to generate model card.
92
106
  license (`str`, *optional*):
@@ -191,7 +205,7 @@ class ModelHubMixin:
191
205
  # Model card template
192
206
  model_card_template: str = DEFAULT_MODEL_CARD,
193
207
  # Model card metadata
194
- languages: Optional[List[str]] = None,
208
+ language: Optional[List[str]] = None,
195
209
  library_name: Optional[str] = None,
196
210
  license: Optional[str] = None,
197
211
  license_name: Optional[str] = None,
@@ -205,6 +219,8 @@ class ModelHubMixin:
205
219
  # Value is a tuple (encoder, decoder).
206
220
  # Example: {MyCustomType: (lambda x: x.value, lambda data: MyCustomType(data))}
207
221
  ] = None,
222
+ # Deprecated arguments
223
+ languages: Optional[List[str]] = None,
208
224
  ) -> None:
209
225
  """Inspect __init__ signature only once when subclassing + handle modelcard."""
210
226
  super().__init_subclass__()
@@ -212,20 +228,57 @@ class ModelHubMixin:
212
228
  # Will be reused when creating modelcard
213
229
  tags = tags or []
214
230
  tags.append("model_hub_mixin")
215
- cls._hub_mixin_info = MixinInfo(
216
- model_card_template=model_card_template,
217
- repo_url=repo_url,
218
- docs_url=docs_url,
219
- model_card_data=ModelCardData(
220
- languages=languages,
221
- library_name=library_name,
222
- license=license,
223
- license_name=license_name,
224
- license_link=license_link,
225
- pipeline_tag=pipeline_tag,
226
- tags=tags,
227
- ),
228
- )
231
+
232
+ # Initialize MixinInfo if not existent
233
+ info = MixinInfo(model_card_template=model_card_template, model_card_data=ModelCardData())
234
+
235
+ # If parent class has a MixinInfo, inherit from it as a copy
236
+ if hasattr(cls, "_hub_mixin_info"):
237
+ # Inherit model card template from parent class if not explicitly set
238
+ if model_card_template == DEFAULT_MODEL_CARD:
239
+ info.model_card_template = cls._hub_mixin_info.model_card_template
240
+
241
+ # Inherit from parent model card data
242
+ info.model_card_data = ModelCardData(**cls._hub_mixin_info.model_card_data.to_dict())
243
+
244
+ # Inherit other info
245
+ info.docs_url = cls._hub_mixin_info.docs_url
246
+ info.repo_url = cls._hub_mixin_info.repo_url
247
+ cls._hub_mixin_info = info
248
+
249
+ if languages is not None:
250
+ warnings.warn(
251
+ "The `languages` argument is deprecated. Use `language` instead. This will be removed in `huggingface_hub>=0.27.0`.",
252
+ DeprecationWarning,
253
+ )
254
+ language = languages
255
+
256
+ # Update MixinInfo with metadata
257
+ if model_card_template is not None and model_card_template != DEFAULT_MODEL_CARD:
258
+ info.model_card_template = model_card_template
259
+ if repo_url is not None:
260
+ info.repo_url = repo_url
261
+ if docs_url is not None:
262
+ info.docs_url = docs_url
263
+ if language is not None:
264
+ info.model_card_data.language = language
265
+ if library_name is not None:
266
+ info.model_card_data.library_name = library_name
267
+ if license is not None:
268
+ info.model_card_data.license = license
269
+ if license_name is not None:
270
+ info.model_card_data.license_name = license_name
271
+ if license_link is not None:
272
+ info.model_card_data.license_link = license_link
273
+ if pipeline_tag is not None:
274
+ info.model_card_data.pipeline_tag = pipeline_tag
275
+ if tags is not None:
276
+ if info.model_card_data.tags is not None:
277
+ info.model_card_data.tags.extend(tags)
278
+ else:
279
+ info.model_card_data.tags = tags
280
+
281
+ info.model_card_data.tags = sorted(set(info.model_card_data.tags))
229
282
 
230
283
  # Handle encoders/decoders for args
231
284
  cls._hub_mixin_coders = coders or {}
@@ -283,12 +336,11 @@ class ModelHubMixin:
283
336
  if instance._is_jsonable(value) # Only if jsonable or we have a custom encoder
284
337
  },
285
338
  }
286
- init_config.pop("config", {})
339
+ passed_config = init_config.pop("config", {})
287
340
 
288
341
  # Populate `init_config` with provided config
289
- provided_config = passed_values.get("config")
290
- if isinstance(provided_config, dict):
291
- init_config.update(provided_config)
342
+ if isinstance(passed_config, dict):
343
+ init_config.update(passed_config)
292
344
 
293
345
  # Set `config` attribute and return
294
346
  if init_config != {}:
@@ -307,15 +359,26 @@ class ModelHubMixin:
307
359
  """Encode an argument into a JSON serializable format."""
308
360
  for type_, (encoder, _) in cls._hub_mixin_coders.items():
309
361
  if isinstance(arg, type_):
362
+ if arg is None:
363
+ return None
310
364
  return encoder(arg)
311
365
  return arg
312
366
 
313
367
  @classmethod
314
- def _decode_arg(cls, expected_type: Type[ARGS_T], value: Any) -> ARGS_T:
368
+ def _decode_arg(cls, expected_type: Type[ARGS_T], value: Any) -> Optional[ARGS_T]:
315
369
  """Decode a JSON serializable value into an argument."""
370
+ if is_simple_optional_type(expected_type):
371
+ if value is None:
372
+ return None
373
+ expected_type = unwrap_simple_optional_type(expected_type)
374
+ # Dataclass => handle it
375
+ if is_dataclass(expected_type):
376
+ return _load_dataclass(expected_type, value) # type: ignore[return-value]
377
+ # Otherwise => check custom decoders
316
378
  for type_, (_, decoder) in cls._hub_mixin_coders.items():
317
- if issubclass(expected_type, type_):
379
+ if inspect.isclass(expected_type) and issubclass(expected_type, type_):
318
380
  return decoder(value)
381
+ # Otherwise => don't decode
319
382
  return value
320
383
 
321
384
  def save_pretrained(
@@ -325,6 +388,7 @@ class ModelHubMixin:
325
388
  config: Optional[Union[dict, "DataclassInstance"]] = None,
326
389
  repo_id: Optional[str] = None,
327
390
  push_to_hub: bool = False,
391
+ model_card_kwargs: Optional[Dict[str, Any]] = None,
328
392
  **push_to_hub_kwargs,
329
393
  ) -> Optional[str]:
330
394
  """
@@ -340,7 +404,9 @@ class ModelHubMixin:
340
404
  repo_id (`str`, *optional*):
341
405
  ID of your repository on the Hub. Used only if `push_to_hub=True`. Will default to the folder name if
342
406
  not provided.
343
- kwargs:
407
+ model_card_kwargs (`Dict[str, Any]`, *optional*):
408
+ Additional arguments passed to the model card template to customize the model card.
409
+ push_to_hub_kwargs:
344
410
  Additional key word arguments passed along to the [`~ModelHubMixin.push_to_hub`] method.
345
411
  Returns:
346
412
  `str` or `None`: url of the commit on the Hub if `push_to_hub=True`, `None` otherwise.
@@ -369,8 +435,9 @@ class ModelHubMixin:
369
435
 
370
436
  # save model card
371
437
  model_card_path = save_directory / "README.md"
438
+ model_card_kwargs = model_card_kwargs if model_card_kwargs is not None else {}
372
439
  if not model_card_path.exists(): # do not overwrite if already exists
373
- self.generate_model_card().save(save_directory / "README.md")
440
+ self.generate_model_card(**model_card_kwargs).save(save_directory / "README.md")
374
441
 
375
442
  # push to the Hub if required
376
443
  if push_to_hub:
@@ -379,7 +446,7 @@ class ModelHubMixin:
379
446
  kwargs["config"] = config
380
447
  if repo_id is None:
381
448
  repo_id = save_directory.name # Defaults to `save_directory` name
382
- return self.push_to_hub(repo_id=repo_id, **kwargs)
449
+ return self.push_to_hub(repo_id=repo_id, model_card_kwargs=model_card_kwargs, **kwargs)
383
450
  return None
384
451
 
385
452
  def _save_pretrained(self, save_directory: Path) -> None:
@@ -477,19 +544,10 @@ class ModelHubMixin:
477
544
  model_kwargs[param.name] = config[param.name]
478
545
 
479
546
  # Check if `config` argument was passed at init
480
- if "config" in cls._hub_mixin_init_parameters:
481
- # Check if `config` argument is a dataclass
547
+ if "config" in cls._hub_mixin_init_parameters and "config" not in model_kwargs:
548
+ # Decode `config` argument if it was passed
482
549
  config_annotation = cls._hub_mixin_init_parameters["config"].annotation
483
- if config_annotation is inspect.Parameter.empty:
484
- pass # no annotation
485
- elif is_dataclass(config_annotation):
486
- config = _load_dataclass(config_annotation, config)
487
- else:
488
- # if Optional/Union annotation => check if a dataclass is in the Union
489
- for _sub_annotation in get_args(config_annotation):
490
- if is_dataclass(_sub_annotation):
491
- config = _load_dataclass(_sub_annotation, config)
492
- break
550
+ config = cls._decode_arg(config_annotation, config)
493
551
 
494
552
  # Forward config to model initialization
495
553
  model_kwargs["config"] = config
@@ -505,7 +563,7 @@ class ModelHubMixin:
505
563
  model_kwargs[key] = value
506
564
 
507
565
  # Finally, also inject if `_from_pretrained` expects it
508
- if cls._hub_mixin_inject_config:
566
+ if cls._hub_mixin_inject_config and "config" not in model_kwargs:
509
567
  model_kwargs["config"] = config
510
568
 
511
569
  instance = cls._from_pretrained(
@@ -588,6 +646,7 @@ class ModelHubMixin:
588
646
  allow_patterns: Optional[Union[List[str], str]] = None,
589
647
  ignore_patterns: Optional[Union[List[str], str]] = None,
590
648
  delete_patterns: Optional[Union[List[str], str]] = None,
649
+ model_card_kwargs: Optional[Dict[str, Any]] = None,
591
650
  ) -> str:
592
651
  """
593
652
  Upload model checkpoint to the Hub.
@@ -618,6 +677,8 @@ class ModelHubMixin:
618
677
  If provided, files matching any of the patterns are not pushed.
619
678
  delete_patterns (`List[str]` or `str`, *optional*):
620
679
  If provided, remote files matching any of the patterns will be deleted from the repo.
680
+ model_card_kwargs (`Dict[str, Any]`, *optional*):
681
+ Additional arguments passed to the model card template to customize the model card.
621
682
 
622
683
  Returns:
623
684
  The url of the commit of your model in the given repository.
@@ -628,7 +689,7 @@ class ModelHubMixin:
628
689
  # Push the files to the repo in a single commit
629
690
  with SoftTemporaryDirectory() as tmp:
630
691
  saved_path = Path(tmp) / repo_id
631
- self.save_pretrained(saved_path, config=config)
692
+ self.save_pretrained(saved_path, config=config, model_card_kwargs=model_card_kwargs)
632
693
  return api.upload_folder(
633
694
  repo_id=repo_id,
634
695
  repo_type="model",
@@ -647,6 +708,7 @@ class ModelHubMixin:
647
708
  template_str=self._hub_mixin_info.model_card_template,
648
709
  repo_url=self._hub_mixin_info.repo_url,
649
710
  docs_url=self._hub_mixin_info.docs_url,
711
+ **kwargs,
650
712
  )
651
713
  return card
652
714
 
@@ -242,19 +242,6 @@ class ModelCardData(CardData):
242
242
  """Model Card Metadata that is used by Hugging Face Hub when included at the top of your README.md
243
243
 
244
244
  Args:
245
- language (`Union[str, List[str]]`, *optional*):
246
- Language of model's training data or metadata. It must be an ISO 639-1, 639-2 or
247
- 639-3 code (two/three letters), or a special value like "code", "multilingual". Defaults to `None`.
248
- license (`str`, *optional*):
249
- License of this model. Example: apache-2.0 or any license from
250
- https://huggingface.co/docs/hub/repositories-licenses. Defaults to None.
251
- library_name (`str`, *optional*):
252
- Name of library used by this model. Example: keras or any library from
253
- https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/src/model-libraries.ts.
254
- Defaults to None.
255
- tags (`List[str]`, *optional*):
256
- List of tags to add to your model that can be used when filtering on the Hugging
257
- Face Hub. Defaults to None.
258
245
  base_model (`str` or `List[str]`, *optional*):
259
246
  The identifier of the base model from which the model derives. This is applicable for example if your model is a
260
247
  fine-tune or adapter of an existing model. The value must be the ID of a model on the Hub (or a list of IDs
@@ -262,17 +249,36 @@ class ModelCardData(CardData):
262
249
  datasets (`List[str]`, *optional*):
263
250
  List of datasets that were used to train this model. Should be a dataset ID
264
251
  found on https://hf.co/datasets. Defaults to None.
265
- metrics (`List[str]`, *optional*):
266
- List of metrics used to evaluate this model. Should be a metric name that can be found
267
- at https://hf.co/metrics. Example: 'accuracy'. Defaults to None.
268
252
  eval_results (`Union[List[EvalResult], EvalResult]`, *optional*):
269
253
  List of `huggingface_hub.EvalResult` that define evaluation results of the model. If provided,
270
254
  `model_name` is used to as a name on PapersWithCode's leaderboards. Defaults to `None`.
255
+ language (`Union[str, List[str]]`, *optional*):
256
+ Language of model's training data or metadata. It must be an ISO 639-1, 639-2 or
257
+ 639-3 code (two/three letters), or a special value like "code", "multilingual". Defaults to `None`.
258
+ library_name (`str`, *optional*):
259
+ Name of library used by this model. Example: keras or any library from
260
+ https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/src/model-libraries.ts.
261
+ Defaults to None.
262
+ license (`str`, *optional*):
263
+ License of this model. Example: apache-2.0 or any license from
264
+ https://huggingface.co/docs/hub/repositories-licenses. Defaults to None.
265
+ license_name (`str`, *optional*):
266
+ Name of the license of this model. Defaults to None. To be used in conjunction with `license_link`.
267
+ Common licenses (Apache-2.0, MIT, CC-BY-SA-4.0) do not need a name. In that case, use `license` instead.
268
+ license_link (`str`, *optional*):
269
+ Link to the license of this model. Defaults to None. To be used in conjunction with `license_name`.
270
+ Common licenses (Apache-2.0, MIT, CC-BY-SA-4.0) do not need a link. In that case, use `license` instead.
271
+ metrics (`List[str]`, *optional*):
272
+ List of metrics used to evaluate this model. Should be a metric name that can be found
273
+ at https://hf.co/metrics. Example: 'accuracy'. Defaults to None.
271
274
  model_name (`str`, *optional*):
272
275
  A name for this model. It is used along with
273
276
  `eval_results` to construct the `model-index` within the card's metadata. The name
274
277
  you supply here is what will be used on PapersWithCode's leaderboards. If None is provided
275
278
  then the repo name is used as a default. Defaults to None.
279
+ tags (`List[str]`, *optional*):
280
+ List of tags to add to your model that can be used when filtering on the Hugging
281
+ Face Hub. Defaults to None.
276
282
  ignore_metadata_errors (`str`):
277
283
  If True, errors while parsing the metadata section will be ignored. Some information might be lost during
278
284
  the process. Use it at your own risk.
@@ -297,27 +303,33 @@ class ModelCardData(CardData):
297
303
  def __init__(
298
304
  self,
299
305
  *,
300
- language: Optional[Union[str, List[str]]] = None,
301
- license: Optional[str] = None,
302
- library_name: Optional[str] = None,
303
- tags: Optional[List[str]] = None,
304
306
  base_model: Optional[Union[str, List[str]]] = None,
305
307
  datasets: Optional[List[str]] = None,
306
- metrics: Optional[List[str]] = None,
307
308
  eval_results: Optional[List[EvalResult]] = None,
309
+ language: Optional[Union[str, List[str]]] = None,
310
+ library_name: Optional[str] = None,
311
+ license: Optional[str] = None,
312
+ license_name: Optional[str] = None,
313
+ license_link: Optional[str] = None,
314
+ metrics: Optional[List[str]] = None,
308
315
  model_name: Optional[str] = None,
316
+ pipeline_tag: Optional[str] = None,
317
+ tags: Optional[List[str]] = None,
309
318
  ignore_metadata_errors: bool = False,
310
319
  **kwargs,
311
320
  ):
312
- self.language = language
313
- self.license = license
314
- self.library_name = library_name
315
- self.tags = _to_unique_list(tags)
316
321
  self.base_model = base_model
317
322
  self.datasets = datasets
318
- self.metrics = metrics
319
323
  self.eval_results = eval_results
324
+ self.language = language
325
+ self.library_name = library_name
326
+ self.license = license
327
+ self.license_name = license_name
328
+ self.license_link = license_link
329
+ self.metrics = metrics
320
330
  self.model_name = model_name
331
+ self.pipeline_tag = pipeline_tag
332
+ self.tags = _to_unique_list(tags)
321
333
 
322
334
  model_index = kwargs.pop("model-index", None)
323
335
  if model_index:
@@ -113,7 +113,7 @@ from ._safetensors import (
113
113
  from ._subprocess import capture_output, run_interactive_subprocess, run_subprocess
114
114
  from ._telemetry import send_telemetry
115
115
  from ._token import get_token
116
- from ._typing import is_jsonable
116
+ from ._typing import is_jsonable, is_simple_optional_type, unwrap_simple_optional_type
117
117
  from ._validators import (
118
118
  smoothly_deprecate_use_auth_token,
119
119
  validate_hf_hub_args,
@@ -14,7 +14,15 @@
14
14
  # limitations under the License.
15
15
  """Handle typing imports based on system compatibility."""
16
16
 
17
- from typing import Any, Callable, Literal, TypeVar
17
+ import sys
18
+ from typing import Any, Callable, List, Literal, Type, TypeVar, Union, get_args, get_origin
19
+
20
+
21
+ UNION_TYPES: List[Any] = [Union]
22
+ if sys.version_info >= (3, 10):
23
+ from types import UnionType
24
+
25
+ UNION_TYPES += [UnionType]
18
26
 
19
27
 
20
28
  HTTP_METHOD_T = Literal["GET", "OPTIONS", "HEAD", "POST", "PUT", "PATCH", "DELETE"]
@@ -48,3 +56,20 @@ def is_jsonable(obj: Any) -> bool:
48
56
  return False
49
57
  except RecursionError:
50
58
  return False
59
+
60
+
61
+ def is_simple_optional_type(type_: Type) -> bool:
62
+ """Check if a type is optional, i.e. Optional[Type] or Union[Type, None] or Type | None, where Type is a non-composite type."""
63
+ if get_origin(type_) in UNION_TYPES:
64
+ union_args = get_args(type_)
65
+ if len(union_args) == 2 and type(None) in union_args:
66
+ return True
67
+ return False
68
+
69
+
70
+ def unwrap_simple_optional_type(optional_type: Type) -> Type:
71
+ """Unwraps a simple optional type, i.e. returns Type from Optional[Type]."""
72
+ for arg in get_args(optional_type):
73
+ if arg is not type(None):
74
+ return arg
75
+ raise ValueError(f"'{optional_type}' is not an optional type")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huggingface-hub
3
- Version: 0.23.3
3
+ Version: 0.23.5
4
4
  Summary: Client library to download and publish models, datasets and other repos on the huggingface.co hub
5
5
  Home-page: https://github.com/huggingface/huggingface_hub
6
6
  Author: Hugging Face, Inc.
@@ -1,4 +1,4 @@
1
- huggingface_hub/__init__.py,sha256=LiLSm-X5he5RGwijUojF739PZvC89tCX7F-WsirePCw,32692
1
+ huggingface_hub/__init__.py,sha256=8lfj3FHZGL5GT9FdbRp9AOvsr3AMWr0n3azr0SS5kOc,32692
2
2
  huggingface_hub/_commit_api.py,sha256=Z1sQnJx1xWfspsX6vS8eGTmr-9QujIoItjbnJVVyyCQ,29299
3
3
  huggingface_hub/_commit_scheduler.py,sha256=nlJS_vnLb8i92NLrRwJX8Mg9QZ7f3kfLbLlQuEd5YjU,13647
4
4
  huggingface_hub/_inference_endpoints.py,sha256=rBx6xgnSJq0JtntF1_zphj7NsCmduICqgZfmvscdE_w,15667
@@ -17,12 +17,12 @@ huggingface_hub/fastai_utils.py,sha256=5I7zAfgHJU_mZnxnf9wgWTHrCRu_EAV8VTangDVfE
17
17
  huggingface_hub/file_download.py,sha256=n5ovYqh1-xe3ptRHuS-EXn6X_-3ZVI7C-pQrHD45DtA,82236
18
18
  huggingface_hub/hf_api.py,sha256=hyMkURhYXalCNG4Qqx3PhN7Ucru8m18ZidEok_T2504,375216
19
19
  huggingface_hub/hf_file_system.py,sha256=EHSWD6Pdm9ED-cgNh-ozoiz69pODssKrObKybVJPBQA,37830
20
- huggingface_hub/hub_mixin.py,sha256=ktwuDqSXFU2q2_xj676R-zag_tB3QEiMMVFueJ3YD9g,34644
20
+ huggingface_hub/hub_mixin.py,sha256=bm5hZGeOHBSUBfiAXJv8cU05nAZr65TxnkUJLWLwAEg,37308
21
21
  huggingface_hub/inference_api.py,sha256=UXOKu_Ez2I3hDsjguqCcCrj03WFDndehpngYiIAucdg,8331
22
22
  huggingface_hub/keras_mixin.py,sha256=2DF-hNGdxJCxqvcw46id-ExH_865ZAXsJd2vmpAuWHQ,19484
23
23
  huggingface_hub/lfs.py,sha256=GNmKV_SURcGxMa3p_OyF8ttoq7fZhHjgpyxYzP4VTqU,19690
24
24
  huggingface_hub/repocard.py,sha256=oUrGim27nCHkevPDZDbUp68uKTxB8xbdoyeqv24pexc,34605
25
- huggingface_hub/repocard_data.py,sha256=1hIkI8xp0EmW2aR3LtHMrjIMk_W-KJxHslMjpNMwVPg,31911
25
+ huggingface_hub/repocard_data.py,sha256=wmiDDFNY8oJzT31PB4RRQhM2lRdy_QtNebqSWCClYZw,32708
26
26
  huggingface_hub/repository.py,sha256=87QxXPTK9PCztFW69oD4RZsNMLL9yxoQDdn-F81wSdM,54548
27
27
  huggingface_hub/commands/__init__.py,sha256=AkbM2a-iGh0Vq_xAWhK3mu3uZ44km8-X5uWjKcvcrUQ,928
28
28
  huggingface_hub/commands/_cli_utils.py,sha256=qRdl9opi3yJxIVNCnrmte-jFWmYbjVqd8gBlin8NNzY,1971
@@ -80,7 +80,7 @@ huggingface_hub/serialization/_tensorflow.py,sha256=4Wf_wzmLSzZua9hGGmArfngDzz3y
80
80
  huggingface_hub/serialization/_torch.py,sha256=t-pTq4O3NpAprVJIojtC8Rq-kNJ889IluJtJtoLoqVk,7705
81
81
  huggingface_hub/templates/datasetcard_template.md,sha256=W-EMqR6wndbrnZorkVv56URWPG49l7MATGeI015kTvs,5503
82
82
  huggingface_hub/templates/modelcard_template.md,sha256=4AqArS3cqdtbit5Bo-DhjcnDFR-pza5hErLLTPM4Yuc,6870
83
- huggingface_hub/utils/__init__.py,sha256=44yhxTtWsuMGrZcALK-3UuVazGBtc94z9nZwLmLnu8w,3589
83
+ huggingface_hub/utils/__init__.py,sha256=ljxHEvOAJlGtyepVLiTePBFR1CmOnmuvCrfsbMN3HqA,3643
84
84
  huggingface_hub/utils/_cache_assets.py,sha256=kai77HPQMfYpROouMBQCr_gdBCaeTm996Sqj0dExbNg,5728
85
85
  huggingface_hub/utils/_cache_manager.py,sha256=Fs1XVP1UGzUTogMfMfEi_MfpURzHyW__djX0s2oLmrY,29307
86
86
  huggingface_hub/utils/_chunk_utils.py,sha256=kRCaj5228_vKcyLWspd8Xq01f17Jz6ds5Sr9ed5d_RU,2130
@@ -100,16 +100,16 @@ huggingface_hub/utils/_safetensors.py,sha256=GW3nyv7xQcuwObKYeYoT9VhURVzG1DZTbKB
100
100
  huggingface_hub/utils/_subprocess.py,sha256=34ETD8JvLzm16NRZHciaCLXdE9aRyxuDdOA5gdNvMJ8,4617
101
101
  huggingface_hub/utils/_telemetry.py,sha256=jHAdgWNcL9nVvMT3ec3i78O-cwL09GnlifuokzpQjMI,4641
102
102
  huggingface_hub/utils/_token.py,sha256=cxBZaafW2IsJ2dKWd55v7056zycW1ewp_nPk8dNcSO4,5476
103
- huggingface_hub/utils/_typing.py,sha256=pXh7GtVtSBD_Fvvthex9BRTAJZ6bWScUOw06oJS0Lek,2025
103
+ huggingface_hub/utils/_typing.py,sha256=UO0-GeTbiKFV9GqDh4YNRyScQSRAAZRoUeEYQX4P0rE,2882
104
104
  huggingface_hub/utils/_validators.py,sha256=dDsVG31iooTYrIyi5Vwr1DukL0fEmJwu3ceVNduhsuE,9204
105
105
  huggingface_hub/utils/endpoint_helpers.py,sha256=n_VguR_L2Vl6Mi_4PFO2iAd5xaPeQRiD8KRBpzs4nMw,9536
106
106
  huggingface_hub/utils/insecure_hashlib.py,sha256=OjxlvtSQHpbLp9PWSrXBDJ0wHjxCBU-SQJgucEEXDbU,1058
107
107
  huggingface_hub/utils/logging.py,sha256=Cp03s0uEl3kDM9XHQW9a8GAoExODQ-e7kEtgMt-_To8,4728
108
108
  huggingface_hub/utils/sha.py,sha256=QLlIwPCyz46MmUc_4L8xl87KfYoBks9kPgsMZ5JCz-o,902
109
109
  huggingface_hub/utils/tqdm.py,sha256=x35PqUA8bBBztPrqhv87Y_TGl5CdlfBs4pe6k1YyDJ8,9390
110
- huggingface_hub-0.23.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
111
- huggingface_hub-0.23.3.dist-info/METADATA,sha256=dRu_0FL48ZGw1WWbhW6sFBetR8zjt7bGz3xdAjVJx20,12994
112
- huggingface_hub-0.23.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
113
- huggingface_hub-0.23.3.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
114
- huggingface_hub-0.23.3.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
115
- huggingface_hub-0.23.3.dist-info/RECORD,,
110
+ huggingface_hub-0.23.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
111
+ huggingface_hub-0.23.5.dist-info/METADATA,sha256=8PkXVr0n3iwe_xCVWlSEO7_uFXlW4MXU-j_5iyae9Ps,12994
112
+ huggingface_hub-0.23.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
113
+ huggingface_hub-0.23.5.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
114
+ huggingface_hub-0.23.5.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
115
+ huggingface_hub-0.23.5.dist-info/RECORD,,