|
163 | 163 | "trendingScore", |
164 | 164 | "usedStorage", |
165 | 165 | "widgetData", |
| 166 | + "xetEnabled", |
166 | 167 | ] |
167 | 168 |
|
168 | 169 | ExpandDatasetProperty_T = Literal[ |
|
185 | 186 | "tags", |
186 | 187 | "trendingScore", |
187 | 188 | "usedStorage", |
| 189 | + "xetEnabled", |
188 | 190 | ] |
189 | 191 |
|
190 | 192 | ExpandSpaceProperty_T = Literal[ |
|
206 | 208 | "tags", |
207 | 209 | "trendingScore", |
208 | 210 | "usedStorage", |
| 211 | + "xetEnabled", |
209 | 212 | ] |
210 | 213 |
|
211 | 214 | USERNAME_PLACEHOLDER = "hf_user" |
@@ -816,6 +819,7 @@ class ModelInfo: |
816 | 819 | spaces: Optional[List[str]] |
817 | 820 | safetensors: Optional[SafeTensorsInfo] |
818 | 821 | security_repo_status: Optional[Dict] |
| 822 | + xet_enabled: Optional[bool] |
819 | 823 |
|
820 | 824 | def __init__(self, **kwargs): |
821 | 825 | self.id = kwargs.pop("id") |
@@ -890,6 +894,7 @@ def __init__(self, **kwargs): |
890 | 894 | else None |
891 | 895 | ) |
892 | 896 | self.security_repo_status = kwargs.pop("securityRepoStatus", None) |
| 897 | + self.xet_enabled = kwargs.pop("xetEnabled", None) |
893 | 898 | # backwards compatibility |
894 | 899 | self.lastModified = self.last_modified |
895 | 900 | self.cardData = self.card_data |
@@ -963,6 +968,7 @@ class DatasetInfo: |
963 | 968 | trending_score: Optional[int] |
964 | 969 | card_data: Optional[DatasetCardData] |
965 | 970 | siblings: Optional[List[RepoSibling]] |
| 971 | + xet_enabled: Optional[bool] |
966 | 972 |
|
967 | 973 | def __init__(self, **kwargs): |
968 | 974 | self.id = kwargs.pop("id") |
@@ -1008,7 +1014,7 @@ def __init__(self, **kwargs): |
1008 | 1014 | if siblings is not None |
1009 | 1015 | else None |
1010 | 1016 | ) |
1011 | | - |
| 1017 | + self.xet_enabled = kwargs.pop("xetEnabled", None) |
1012 | 1018 | # backwards compatibility |
1013 | 1019 | self.lastModified = self.last_modified |
1014 | 1020 | self.cardData = self.card_data |
@@ -1090,6 +1096,7 @@ class SpaceInfo: |
1090 | 1096 | runtime: Optional[SpaceRuntime] |
1091 | 1097 | models: Optional[List[str]] |
1092 | 1098 | datasets: Optional[List[str]] |
| 1099 | + xet_enabled: Optional[bool] |
1093 | 1100 |
|
1094 | 1101 | def __init__(self, **kwargs): |
1095 | 1102 | self.id = kwargs.pop("id") |
@@ -1138,7 +1145,7 @@ def __init__(self, **kwargs): |
1138 | 1145 | self.runtime = SpaceRuntime(runtime) if runtime else None |
1139 | 1146 | self.models = kwargs.pop("models", None) |
1140 | 1147 | self.datasets = kwargs.pop("datasets", None) |
1141 | | - |
| 1148 | + self.xet_enabled = kwargs.pop("xetEnabled", None) |
1142 | 1149 | # backwards compatibility |
1143 | 1150 | self.lastModified = self.last_modified |
1144 | 1151 | self.cardData = self.card_data |
@@ -1818,7 +1825,7 @@ def list_models( |
1818 | 1825 | expand (`List[ExpandModelProperty_T]`, *optional*): |
1819 | 1826 | List properties to return in the response. When used, only the properties in the list will be returned. |
1820 | 1827 | This parameter cannot be used if `full`, `cardData` or `fetch_config` are passed. |
1821 | | - Possible values are `"author"`, `"baseModels"`, `"cardData"`, `"childrenModelCount"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gguf"`, `"inference"`, `"inferenceProviderMapping"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"`, `"trendingScore"`, `"widgetData"`, `"usedStorage"` and `"resourceGroup"`. |
| 1828 | + Possible values are `"author"`, `"baseModels"`, `"cardData"`, `"childrenModelCount"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gguf"`, `"inference"`, `"inferenceProviderMapping"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"`, `"trendingScore"`, `"widgetData"`, `"usedStorage"`, `"resourceGroup"` and `"xetEnabled"`. |
1822 | 1829 | full (`bool`, *optional*): |
1823 | 1830 | Whether to fetch all model data, including the `last_modified`, |
1824 | 1831 | the `sha`, the files and the `tags`. This is set to `True` by |
@@ -2038,7 +2045,7 @@ def list_datasets( |
2038 | 2045 | expand (`List[ExpandDatasetProperty_T]`, *optional*): |
2039 | 2046 | List properties to return in the response. When used, only the properties in the list will be returned. |
2040 | 2047 | This parameter cannot be used if `full` is passed. |
2041 | | - Possible values are `"author"`, `"cardData"`, `"citation"`, `"createdAt"`, `"disabled"`, `"description"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"lastModified"`, `"likes"`, `"paperswithcode_id"`, `"private"`, `"siblings"`, `"sha"`, `"tags"`, `"trendingScore"`, `"usedStorage"` and `"resourceGroup"`. |
| 2048 | + Possible values are `"author"`, `"cardData"`, `"citation"`, `"createdAt"`, `"disabled"`, `"description"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"lastModified"`, `"likes"`, `"paperswithcode_id"`, `"private"`, `"siblings"`, `"sha"`, `"tags"`, `"trendingScore"`, `"usedStorage"`, `"resourceGroup"` and `"xetEnabled"`. |
2042 | 2049 | full (`bool`, *optional*): |
2043 | 2050 | Whether to fetch all dataset data, including the `last_modified`, |
2044 | 2051 | the `card_data` and the files. Can contain useful information such as the |
@@ -2216,7 +2223,7 @@ def list_spaces( |
2216 | 2223 | expand (`List[ExpandSpaceProperty_T]`, *optional*): |
2217 | 2224 | List properties to return in the response. When used, only the properties in the list will be returned. |
2218 | 2225 | This parameter cannot be used if `full` is passed. |
2219 | | - Possible values are `"author"`, `"cardData"`, `"datasets"`, `"disabled"`, `"lastModified"`, `"createdAt"`, `"likes"`, `"models"`, `"private"`, `"runtime"`, `"sdk"`, `"siblings"`, `"sha"`, `"subdomain"`, `"tags"`, `"trendingScore"`, `"usedStorage"` and `"resourceGroup"`. |
| 2226 | + Possible values are `"author"`, `"cardData"`, `"datasets"`, `"disabled"`, `"lastModified"`, `"createdAt"`, `"likes"`, `"models"`, `"private"`, `"runtime"`, `"sdk"`, `"siblings"`, `"sha"`, `"subdomain"`, `"tags"`, `"trendingScore"`, `"usedStorage"`, `"resourceGroup"` and `"xetEnabled"`. |
2220 | 2227 | full (`bool`, *optional*): |
2221 | 2228 | Whether to fetch all Spaces data, including the `last_modified`, `siblings` |
2222 | 2229 | and `card_data` fields. |
@@ -2477,7 +2484,7 @@ def model_info( |
2477 | 2484 | expand (`List[ExpandModelProperty_T]`, *optional*): |
2478 | 2485 | List properties to return in the response. When used, only the properties in the list will be returned. |
2479 | 2486 | This parameter cannot be used if `securityStatus` or `files_metadata` are passed. |
2480 | | - Possible values are `"author"`, `"baseModels"`, `"cardData"`, `"childrenModelCount"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gguf"`, `"inference"`, `"inferenceProviderMapping"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"`, `"trendingScore"`, `"widgetData"`, `"usedStorage"` and `"resourceGroup"`. |
| 2487 | + Possible values are `"author"`, `"baseModels"`, `"cardData"`, `"childrenModelCount"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gguf"`, `"inference"`, `"inferenceProviderMapping"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"`, `"trendingScore"`, `"widgetData"`, `"usedStorage"`, `"resourceGroup"` and `"xetEnabled"`. |
2481 | 2488 | token (Union[bool, str, None], optional): |
2482 | 2489 | A valid user access token (string). Defaults to the locally saved |
2483 | 2490 | token, which is the recommended method for authentication (see |
@@ -2551,7 +2558,7 @@ def dataset_info( |
2551 | 2558 | expand (`List[ExpandDatasetProperty_T]`, *optional*): |
2552 | 2559 | List properties to return in the response. When used, only the properties in the list will be returned. |
2553 | 2560 | This parameter cannot be used if `files_metadata` is passed. |
2554 | | - Possible values are `"author"`, `"cardData"`, `"citation"`, `"createdAt"`, `"disabled"`, `"description"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"lastModified"`, `"likes"`, `"paperswithcode_id"`, `"private"`, `"siblings"`, `"sha"`, `"tags"`, `"trendingScore"`,`"usedStorage"` and `"resourceGroup"`. |
| 2561 | + Possible values are `"author"`, `"cardData"`, `"citation"`, `"createdAt"`, `"disabled"`, `"description"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"lastModified"`, `"likes"`, `"paperswithcode_id"`, `"private"`, `"siblings"`, `"sha"`, `"tags"`, `"trendingScore"`,`"usedStorage"`, `"resourceGroup"` and `"xetEnabled"`. |
2555 | 2562 | token (Union[bool, str, None], optional): |
2556 | 2563 | A valid user access token (string). Defaults to the locally saved |
2557 | 2564 | token, which is the recommended method for authentication (see |
@@ -2624,7 +2631,7 @@ def space_info( |
2624 | 2631 | expand (`List[ExpandSpaceProperty_T]`, *optional*): |
2625 | 2632 | List properties to return in the response. When used, only the properties in the list will be returned. |
2626 | 2633 | This parameter cannot be used if `full` is passed. |
2627 | | - Possible values are `"author"`, `"cardData"`, `"createdAt"`, `"datasets"`, `"disabled"`, `"lastModified"`, `"likes"`, `"models"`, `"private"`, `"runtime"`, `"sdk"`, `"siblings"`, `"sha"`, `"subdomain"`, `"tags"`, `"trendingScore"`, `"usedStorage"` and `"resourceGroup"`. |
| 2634 | + Possible values are `"author"`, `"cardData"`, `"createdAt"`, `"datasets"`, `"disabled"`, `"lastModified"`, `"likes"`, `"models"`, `"private"`, `"runtime"`, `"sdk"`, `"siblings"`, `"sha"`, `"subdomain"`, `"tags"`, `"trendingScore"`, `"usedStorage"`, `"resourceGroup"` and `"xetEnabled"`. |
2628 | 2635 | token (Union[bool, str, None], optional): |
2629 | 2636 | A valid user access token (string). Defaults to the locally saved |
2630 | 2637 | token, which is the recommended method for authentication (see |
|
0 commit comments