Skip to content

Commit c8a3e3a

Browse files
committed
fix ExpandModelProperty_T
1 parent 982f9a2 commit c8a3e3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/huggingface_hub/hf_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
"downloadsAllTime",
151151
"gated",
152152
"gitalyUid",
153-
"inferenceStatus",
153+
"inference",
154154
"lastModified",
155155
"library_name",
156156
"likes",
@@ -1632,7 +1632,7 @@ def list_models(
16321632
expand (`List[ExpandModelProperty_T]`, *optional*):
16331633
List properties to return in the response. When used, only the properties in the list will be returned.
16341634
This parameter cannot be used if `full`, `cardData` or `fetch_config` are passed.
1635-
Possible values are `"author"`, `"cardData"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gitalyUid"`, `"inferenceStatus"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"` and `"widgetData"`.
1635+
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"`.
16361636
full (`bool`, *optional*):
16371637
Whether to fetch all model data, including the `last_modified`,
16381638
the `sha`, the files and the `tags`. This is set to `True` by
@@ -2333,7 +2333,7 @@ def model_info(
23332333
expand (`List[ExpandModelProperty_T]`, *optional*):
23342334
List properties to return in the response. When used, only the properties in the list will be returned.
23352335
This parameter cannot be used if `securityStatus` or `files_metadata` are passed.
2336-
Possible values are `"author"`, `"cardData"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gitalyUid"`, `"inferenceStatus"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"` and `"widgetData"`.
2336+
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"`.
23372337
token (Union[bool, str, None], optional):
23382338
A valid user access token (string). Defaults to the locally saved
23392339
token, which is the recommended method for authentication (see

0 commit comments

Comments
 (0)