huggingface-hub 0.24.0__tar.gz → 0.24.0rc0__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.
Potentially problematic release.
This version of huggingface-hub might be problematic. Click here for more details.
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/PKG-INFO +1 -1
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/__init__.py +1 -1
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/hf_api.py +9 -6
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_client.py +1 -6
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/_async_client.py +1 -6
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub.egg-info/PKG-INFO +1 -1
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/LICENSE +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/MANIFEST.in +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/README.md +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/pyproject.toml +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/setup.cfg +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/setup.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_commit_api.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_commit_scheduler.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_inference_endpoints.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_local_folder.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_login.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_multi_commits.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_snapshot_download.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_space_api.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_tensorboard_logger.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_webhooks_payload.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_webhooks_server.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/__init__.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/_cli_utils.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/delete_cache.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/download.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/env.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/huggingface_cli.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/lfs.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/repo_files.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/scan_cache.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/tag.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/upload.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/user.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/community.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/constants.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/errors.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/fastai_utils.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/file_download.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/hf_file_system.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/hub_mixin.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/__init__.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_common.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/__init__.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/__init__.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/audio_classification.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/audio_to_audio.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/automatic_speech_recognition.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/base.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/chat_completion.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/depth_estimation.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/document_question_answering.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/feature_extraction.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/fill_mask.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/image_classification.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/image_segmentation.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/image_to_image.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/image_to_text.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/object_detection.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/question_answering.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/sentence_similarity.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/summarization.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/table_question_answering.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/text2text_generation.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/text_classification.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/text_generation.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/text_to_audio.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/text_to_image.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/token_classification.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/translation.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/video_classification.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/visual_question_answering.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/zero_shot_classification.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/zero_shot_image_classification.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_generated/types/zero_shot_object_detection.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_templating.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_types.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference_api.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/keras_mixin.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/lfs.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/repocard.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/repocard_data.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/repository.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/serialization/__init__.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/serialization/_base.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/serialization/_tensorflow.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/serialization/_torch.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/templates/datasetcard_template.md +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/templates/modelcard_template.md +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/__init__.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_cache_assets.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_cache_manager.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_chunk_utils.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_datetime.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_deprecation.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_errors.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_experimental.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_fixes.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_git_credential.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_headers.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_hf_folder.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_http.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_pagination.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_paths.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_runtime.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_safetensors.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_subprocess.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_telemetry.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_token.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_typing.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_validators.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/endpoint_helpers.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/insecure_hashlib.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/logging.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/sha.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/tqdm.py +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub.egg-info/SOURCES.txt +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub.egg-info/dependency_links.txt +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub.egg-info/entry_points.txt +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub.egg-info/requires.txt +0 -0
- {huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface_hub
|
|
3
|
-
Version: 0.24.
|
|
3
|
+
Version: 0.24.0rc0
|
|
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.
|
|
@@ -149,6 +149,7 @@ ExpandModelProperty_T = Literal[
|
|
|
149
149
|
"downloads",
|
|
150
150
|
"downloadsAllTime",
|
|
151
151
|
"gated",
|
|
152
|
+
"gitalyUid",
|
|
152
153
|
"inference",
|
|
153
154
|
"lastModified",
|
|
154
155
|
"library_name",
|
|
@@ -176,6 +177,7 @@ ExpandDatasetProperty_T = Literal[
|
|
|
176
177
|
"downloads",
|
|
177
178
|
"downloadsAllTime",
|
|
178
179
|
"gated",
|
|
180
|
+
"gitalyUid",
|
|
179
181
|
"lastModified",
|
|
180
182
|
"likes",
|
|
181
183
|
"paperswithcode_id",
|
|
@@ -190,6 +192,7 @@ ExpandSpaceProperty_T = Literal[
|
|
|
190
192
|
"cardData",
|
|
191
193
|
"datasets",
|
|
192
194
|
"disabled",
|
|
195
|
+
"gitalyUid",
|
|
193
196
|
"lastModified",
|
|
194
197
|
"createdAt",
|
|
195
198
|
"likes",
|
|
@@ -1630,7 +1633,7 @@ class HfApi:
|
|
|
1630
1633
|
expand (`List[ExpandModelProperty_T]`, *optional*):
|
|
1631
1634
|
List properties to return in the response. When used, only the properties in the list will be returned.
|
|
1632
1635
|
This parameter cannot be used if `full`, `cardData` or `fetch_config` are passed.
|
|
1633
|
-
Possible values are `"author"`, `"cardData"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"inference"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"` and `"widgetData"`.
|
|
1636
|
+
Possible values are `"author"`, `"cardData"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gitalyUid"`, `"inference"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"` and `"widgetData"`.
|
|
1634
1637
|
full (`bool`, *optional*):
|
|
1635
1638
|
Whether to fetch all model data, including the `last_modified`,
|
|
1636
1639
|
the `sha`, the files and the `tags`. This is set to `True` by
|
|
@@ -1833,7 +1836,7 @@ class HfApi:
|
|
|
1833
1836
|
expand (`List[ExpandDatasetProperty_T]`, *optional*):
|
|
1834
1837
|
List properties to return in the response. When used, only the properties in the list will be returned.
|
|
1835
1838
|
This parameter cannot be used if `full` is passed.
|
|
1836
|
-
Possible values are `"author"`, `"cardData"`, `"citation"`, `"createdAt"`, `"disabled"`, `"description"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"lastModified"`, `"likes"`, `"paperswithcode_id"`, `"private"`, `"siblings"`, `"sha"` and `"tags"`.
|
|
1839
|
+
Possible values are `"author"`, `"cardData"`, `"citation"`, `"createdAt"`, `"disabled"`, `"description"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gitalyUid"`, `"lastModified"`, `"likes"`, `"paperswithcode_id"`, `"private"`, `"siblings"`, `"sha"` and `"tags"`.
|
|
1837
1840
|
full (`bool`, *optional*):
|
|
1838
1841
|
Whether to fetch all dataset data, including the `last_modified`,
|
|
1839
1842
|
the `card_data` and the files. Can contain useful information such as the
|
|
@@ -2014,7 +2017,7 @@ class HfApi:
|
|
|
2014
2017
|
expand (`List[ExpandSpaceProperty_T]`, *optional*):
|
|
2015
2018
|
List properties to return in the response. When used, only the properties in the list will be returned.
|
|
2016
2019
|
This parameter cannot be used if `full` is passed.
|
|
2017
|
-
Possible values are `"author"`, `"cardData"`, `"datasets"`, `"disabled"`, `"lastModified"`, `"createdAt"`, `"likes"`, `"private"`, `"runtime"`, `"sdk"`, `"siblings"`, `"sha"`, `"subdomain"`, `"tags"` and `"models"`.
|
|
2020
|
+
Possible values are `"author"`, `"cardData"`, `"datasets"`, `"disabled"`, `"gitalyUid"`, `"lastModified"`, `"createdAt"`, `"likes"`, `"private"`, `"runtime"`, `"sdk"`, `"siblings"`, `"sha"`, `"subdomain"`, `"tags"` and `"models"`.
|
|
2018
2021
|
full (`bool`, *optional*):
|
|
2019
2022
|
Whether to fetch all Spaces data, including the `last_modified`, `siblings`
|
|
2020
2023
|
and `card_data` fields.
|
|
@@ -2331,7 +2334,7 @@ class HfApi:
|
|
|
2331
2334
|
expand (`List[ExpandModelProperty_T]`, *optional*):
|
|
2332
2335
|
List properties to return in the response. When used, only the properties in the list will be returned.
|
|
2333
2336
|
This parameter cannot be used if `securityStatus` or `files_metadata` are passed.
|
|
2334
|
-
Possible values are `"author"`, `"cardData"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"inference"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"` and `"widgetData"`.
|
|
2337
|
+
Possible values are `"author"`, `"cardData"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gitalyUid"`, `"inference"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"` and `"widgetData"`.
|
|
2335
2338
|
token (Union[bool, str, None], optional):
|
|
2336
2339
|
A valid user access token (string). Defaults to the locally saved
|
|
2337
2340
|
token, which is the recommended method for authentication (see
|
|
@@ -2405,7 +2408,7 @@ class HfApi:
|
|
|
2405
2408
|
expand (`List[ExpandDatasetProperty_T]`, *optional*):
|
|
2406
2409
|
List properties to return in the response. When used, only the properties in the list will be returned.
|
|
2407
2410
|
This parameter cannot be used if `files_metadata` is passed.
|
|
2408
|
-
Possible values are `"author"`, `"cardData"`, `"citation"`, `"createdAt"`, `"disabled"`, `"description"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"lastModified"`, `"likes"`, `"paperswithcode_id"`, `"private"`, `"siblings"`, `"sha"` and `"tags"`.
|
|
2411
|
+
Possible values are `"author"`, `"cardData"`, `"citation"`, `"createdAt"`, `"disabled"`, `"description"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gitalyUid"`, `"lastModified"`, `"likes"`, `"paperswithcode_id"`, `"private"`, `"siblings"`, `"sha"` and `"tags"`.
|
|
2409
2412
|
token (Union[bool, str, None], optional):
|
|
2410
2413
|
A valid user access token (string). Defaults to the locally saved
|
|
2411
2414
|
token, which is the recommended method for authentication (see
|
|
@@ -2478,7 +2481,7 @@ class HfApi:
|
|
|
2478
2481
|
expand (`List[ExpandSpaceProperty_T]`, *optional*):
|
|
2479
2482
|
List properties to return in the response. When used, only the properties in the list will be returned.
|
|
2480
2483
|
This parameter cannot be used if `full` is passed.
|
|
2481
|
-
Possible values are `"author"`, `"cardData"`, `"datasets"`, `"disabled"`, `"lastModified"`, `"createdAt"`, `"likes"`, `"private"`, `"runtime"`, `"sdk"`, `"siblings"`, `"sha"`, `"subdomain"`, `"tags"` and `"models"`.
|
|
2484
|
+
Possible values are `"author"`, `"cardData"`, `"datasets"`, `"disabled"`, `"gitalyUid"`, `"lastModified"`, `"createdAt"`, `"likes"`, `"private"`, `"runtime"`, `"sdk"`, `"siblings"`, `"sha"`, `"subdomain"`, `"tags"` and `"models"`.
|
|
2482
2485
|
token (Union[bool, str, None], optional):
|
|
2483
2486
|
A valid user access token (string). Defaults to the locally saved
|
|
2484
2487
|
token, which is the recommended method for authentication (see
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_client.py
RENAMED
|
@@ -2251,12 +2251,7 @@ class InferenceClient:
|
|
|
2251
2251
|
if stream:
|
|
2252
2252
|
return _stream_text_generation_response(bytes_output, details) # type: ignore
|
|
2253
2253
|
|
|
2254
|
-
data = _bytes_to_dict(bytes_output) # type: ignore[arg-type]
|
|
2255
|
-
|
|
2256
|
-
# Data can be a single element (dict) or an iterable of dicts where we select the first element of.
|
|
2257
|
-
if isinstance(data, list):
|
|
2258
|
-
data = data[0]
|
|
2259
|
-
|
|
2254
|
+
data = _bytes_to_dict(bytes_output)[0] # type: ignore[arg-type]
|
|
2260
2255
|
return TextGenerationOutput.parse_obj_as_instance(data) if details else data["generated_text"]
|
|
2261
2256
|
|
|
2262
2257
|
def text_to_image(
|
|
@@ -2282,12 +2282,7 @@ class AsyncInferenceClient:
|
|
|
2282
2282
|
if stream:
|
|
2283
2283
|
return _async_stream_text_generation_response(bytes_output, details) # type: ignore
|
|
2284
2284
|
|
|
2285
|
-
data = _bytes_to_dict(bytes_output) # type: ignore[arg-type]
|
|
2286
|
-
|
|
2287
|
-
# Data can be a single element (dict) or an iterable of dicts where we select the first element of.
|
|
2288
|
-
if isinstance(data, list):
|
|
2289
|
-
data = data[0]
|
|
2290
|
-
|
|
2285
|
+
data = _bytes_to_dict(bytes_output)[0] # type: ignore[arg-type]
|
|
2291
2286
|
return TextGenerationOutput.parse_obj_as_instance(data) if details else data["generated_text"]
|
|
2292
2287
|
|
|
2293
2288
|
async def text_to_image(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface-hub
|
|
3
|
-
Version: 0.24.
|
|
3
|
+
Version: 0.24.0rc0
|
|
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.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_commit_scheduler.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_inference_endpoints.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_snapshot_download.py
RENAMED
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_tensorboard_logger.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_webhooks_payload.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/_webhooks_server.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/__init__.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/_cli_utils.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/delete_cache.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/download.py
RENAMED
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/huggingface_cli.py
RENAMED
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/repo_files.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/commands/scan_cache.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/__init__.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_common.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_templating.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/inference/_types.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/serialization/__init__.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/serialization/_base.py
RENAMED
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/serialization/_torch.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_cache_assets.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_cache_manager.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_chunk_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_deprecation.py
RENAMED
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_experimental.py
RENAMED
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_git_credential.py
RENAMED
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_hf_folder.py
RENAMED
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_pagination.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_safetensors.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_subprocess.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_telemetry.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/_validators.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/endpoint_helpers.py
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub/utils/insecure_hashlib.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub.egg-info/requires.txt
RENAMED
|
File without changes
|
{huggingface_hub-0.24.0 → huggingface_hub-0.24.0rc0}/src/huggingface_hub.egg-info/top_level.txt
RENAMED
|
File without changes
|