huggingface-hub 0.33.3__py3-none-any.whl → 0.33.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.
- huggingface_hub/__init__.py +525 -441
- huggingface_hub/inference/_common.py +6 -3
- huggingface_hub/inference/_mcp/constants.py +0 -2
- {huggingface_hub-0.33.3.dist-info → huggingface_hub-0.33.5.dist-info}/METADATA +1 -1
- {huggingface_hub-0.33.3.dist-info → huggingface_hub-0.33.5.dist-info}/RECORD +9 -9
- {huggingface_hub-0.33.3.dist-info → huggingface_hub-0.33.5.dist-info}/LICENSE +0 -0
- {huggingface_hub-0.33.3.dist-info → huggingface_hub-0.33.5.dist-info}/WHEEL +0 -0
- {huggingface_hub-0.33.3.dist-info → huggingface_hub-0.33.5.dist-info}/entry_points.txt +0 -0
- {huggingface_hub-0.33.3.dist-info → huggingface_hub-0.33.5.dist-info}/top_level.txt +0 -0
huggingface_hub/__init__.py
CHANGED
|
@@ -45,8 +45,7 @@ import os
|
|
|
45
45
|
import sys
|
|
46
46
|
from typing import TYPE_CHECKING
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
__version__ = "0.33.3"
|
|
48
|
+
__version__ = "0.33.5"
|
|
50
49
|
|
|
51
50
|
# Alphabetical order of definitions is ensured in tests
|
|
52
51
|
# WARNING: any comment added in this dictionary definition will be lost when
|
|
@@ -1037,448 +1036,533 @@ if os.environ.get("EAGER_IMPORT", ""):
|
|
|
1037
1036
|
# ```
|
|
1038
1037
|
if TYPE_CHECKING: # pragma: no cover
|
|
1039
1038
|
from ._commit_scheduler import CommitScheduler # noqa: F401
|
|
1040
|
-
from ._inference_endpoints import
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
InferenceEndpointTimeoutError
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
from ._login import
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
from ._oauth import
|
|
1056
|
-
|
|
1057
|
-
OAuthOrgInfo, # noqa: F401
|
|
1058
|
-
OAuthUserInfo, # noqa: F401
|
|
1059
|
-
attach_huggingface_oauth, # noqa: F401
|
|
1060
|
-
parse_huggingface_oauth, # noqa: F401
|
|
1061
|
-
)
|
|
1039
|
+
from ._inference_endpoints import InferenceEndpoint # noqa: F401
|
|
1040
|
+
from ._inference_endpoints import InferenceEndpointError # noqa: F401
|
|
1041
|
+
from ._inference_endpoints import InferenceEndpointStatus # noqa: F401
|
|
1042
|
+
from ._inference_endpoints import \
|
|
1043
|
+
InferenceEndpointTimeoutError # noqa: F401
|
|
1044
|
+
from ._inference_endpoints import InferenceEndpointType # noqa: F401
|
|
1045
|
+
from ._login import auth_list # noqa: F401
|
|
1046
|
+
from ._login import auth_switch # noqa: F401
|
|
1047
|
+
from ._login import interpreter_login # noqa: F401
|
|
1048
|
+
from ._login import login # noqa: F401
|
|
1049
|
+
from ._login import logout # noqa: F401
|
|
1050
|
+
from ._login import notebook_login # noqa: F401
|
|
1051
|
+
from ._oauth import OAuthInfo # noqa: F401
|
|
1052
|
+
from ._oauth import OAuthOrgInfo # noqa: F401
|
|
1053
|
+
from ._oauth import OAuthUserInfo # noqa: F401
|
|
1054
|
+
from ._oauth import attach_huggingface_oauth # noqa: F401
|
|
1055
|
+
from ._oauth import parse_huggingface_oauth # noqa: F401
|
|
1062
1056
|
from ._snapshot_download import snapshot_download # noqa: F401
|
|
1063
|
-
from ._space_api import
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
SpaceVariable, # noqa: F401
|
|
1069
|
-
)
|
|
1057
|
+
from ._space_api import SpaceHardware # noqa: F401
|
|
1058
|
+
from ._space_api import SpaceRuntime # noqa: F401
|
|
1059
|
+
from ._space_api import SpaceStage # noqa: F401
|
|
1060
|
+
from ._space_api import SpaceStorage # noqa: F401
|
|
1061
|
+
from ._space_api import SpaceVariable # noqa: F401
|
|
1070
1062
|
from ._tensorboard_logger import HFSummaryWriter # noqa: F401
|
|
1071
|
-
from ._webhooks_payload import
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
WebhookPayloadDiscussionChanges
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
from ._webhooks_server import
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
from .community import
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
from .constants import
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
from .
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
from .
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
from .hf_api import
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
from .
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
from .inference.
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
from .inference._generated.
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
ChatCompletionInputResponseFormatJSONObject
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1063
|
+
from ._webhooks_payload import WebhookPayload # noqa: F401
|
|
1064
|
+
from ._webhooks_payload import WebhookPayloadComment # noqa: F401
|
|
1065
|
+
from ._webhooks_payload import WebhookPayloadDiscussion # noqa: F401
|
|
1066
|
+
from ._webhooks_payload import \
|
|
1067
|
+
WebhookPayloadDiscussionChanges # noqa: F401
|
|
1068
|
+
from ._webhooks_payload import WebhookPayloadEvent # noqa: F401
|
|
1069
|
+
from ._webhooks_payload import WebhookPayloadMovedTo # noqa: F401
|
|
1070
|
+
from ._webhooks_payload import WebhookPayloadRepo # noqa: F401
|
|
1071
|
+
from ._webhooks_payload import WebhookPayloadUrl # noqa: F401
|
|
1072
|
+
from ._webhooks_payload import WebhookPayloadWebhook # noqa: F401
|
|
1073
|
+
from ._webhooks_server import WebhooksServer # noqa: F401
|
|
1074
|
+
from ._webhooks_server import webhook_endpoint # noqa: F401
|
|
1075
|
+
from .community import Discussion # noqa: F401
|
|
1076
|
+
from .community import DiscussionComment # noqa: F401
|
|
1077
|
+
from .community import DiscussionCommit # noqa: F401
|
|
1078
|
+
from .community import DiscussionEvent # noqa: F401
|
|
1079
|
+
from .community import DiscussionStatusChange # noqa: F401
|
|
1080
|
+
from .community import DiscussionTitleChange # noqa: F401
|
|
1081
|
+
from .community import DiscussionWithDetails # noqa: F401
|
|
1082
|
+
from .constants import CONFIG_NAME # noqa: F401
|
|
1083
|
+
from .constants import FLAX_WEIGHTS_NAME # noqa: F401
|
|
1084
|
+
from .constants import HUGGINGFACE_CO_URL_HOME # noqa: F401
|
|
1085
|
+
from .constants import HUGGINGFACE_CO_URL_TEMPLATE # noqa: F401
|
|
1086
|
+
from .constants import PYTORCH_WEIGHTS_NAME # noqa: F401
|
|
1087
|
+
from .constants import REPO_TYPE_DATASET # noqa: F401
|
|
1088
|
+
from .constants import REPO_TYPE_MODEL # noqa: F401
|
|
1089
|
+
from .constants import REPO_TYPE_SPACE # noqa: F401
|
|
1090
|
+
from .constants import TF2_WEIGHTS_NAME # noqa: F401
|
|
1091
|
+
from .constants import TF_WEIGHTS_NAME # noqa: F401
|
|
1092
|
+
from .fastai_utils import _save_pretrained_fastai # noqa: F401
|
|
1093
|
+
from .fastai_utils import from_pretrained_fastai # noqa: F401
|
|
1094
|
+
from .fastai_utils import push_to_hub_fastai # noqa: F401
|
|
1095
|
+
from .file_download import _CACHED_NO_EXIST # noqa: F401
|
|
1096
|
+
from .file_download import HfFileMetadata # noqa: F401
|
|
1097
|
+
from .file_download import get_hf_file_metadata # noqa: F401
|
|
1098
|
+
from .file_download import hf_hub_download # noqa: F401
|
|
1099
|
+
from .file_download import hf_hub_url # noqa: F401
|
|
1100
|
+
from .file_download import try_to_load_from_cache # noqa: F401
|
|
1101
|
+
from .hf_api import Collection # noqa: F401
|
|
1102
|
+
from .hf_api import CollectionItem # noqa: F401
|
|
1103
|
+
from .hf_api import CommitInfo # noqa: F401
|
|
1104
|
+
from .hf_api import CommitOperation # noqa: F401
|
|
1105
|
+
from .hf_api import CommitOperationAdd # noqa: F401
|
|
1106
|
+
from .hf_api import CommitOperationCopy # noqa: F401
|
|
1107
|
+
from .hf_api import CommitOperationDelete # noqa: F401
|
|
1108
|
+
from .hf_api import DatasetInfo # noqa: F401
|
|
1109
|
+
from .hf_api import GitCommitInfo # noqa: F401
|
|
1110
|
+
from .hf_api import GitRefInfo # noqa: F401
|
|
1111
|
+
from .hf_api import GitRefs # noqa: F401
|
|
1112
|
+
from .hf_api import HfApi # noqa: F401
|
|
1113
|
+
from .hf_api import ModelInfo # noqa: F401
|
|
1114
|
+
from .hf_api import RepoUrl # noqa: F401
|
|
1115
|
+
from .hf_api import SpaceInfo # noqa: F401
|
|
1116
|
+
from .hf_api import User # noqa: F401
|
|
1117
|
+
from .hf_api import UserLikes # noqa: F401
|
|
1118
|
+
from .hf_api import WebhookInfo # noqa: F401
|
|
1119
|
+
from .hf_api import WebhookWatchedItem # noqa: F401
|
|
1120
|
+
from .hf_api import accept_access_request # noqa: F401
|
|
1121
|
+
from .hf_api import add_collection_item # noqa: F401
|
|
1122
|
+
from .hf_api import add_space_secret # noqa: F401
|
|
1123
|
+
from .hf_api import add_space_variable # noqa: F401
|
|
1124
|
+
from .hf_api import auth_check # noqa: F401
|
|
1125
|
+
from .hf_api import cancel_access_request # noqa: F401
|
|
1126
|
+
from .hf_api import change_discussion_status # noqa: F401
|
|
1127
|
+
from .hf_api import comment_discussion # noqa: F401
|
|
1128
|
+
from .hf_api import create_branch # noqa: F401
|
|
1129
|
+
from .hf_api import create_collection # noqa: F401
|
|
1130
|
+
from .hf_api import create_commit # noqa: F401
|
|
1131
|
+
from .hf_api import create_discussion # noqa: F401
|
|
1132
|
+
from .hf_api import create_inference_endpoint # noqa: F401
|
|
1133
|
+
from .hf_api import create_inference_endpoint_from_catalog # noqa: F401
|
|
1134
|
+
from .hf_api import create_pull_request # noqa: F401
|
|
1135
|
+
from .hf_api import create_repo # noqa: F401
|
|
1136
|
+
from .hf_api import create_tag # noqa: F401
|
|
1137
|
+
from .hf_api import create_webhook # noqa: F401
|
|
1138
|
+
from .hf_api import dataset_info # noqa: F401
|
|
1139
|
+
from .hf_api import delete_branch # noqa: F401
|
|
1140
|
+
from .hf_api import delete_collection # noqa: F401
|
|
1141
|
+
from .hf_api import delete_collection_item # noqa: F401
|
|
1142
|
+
from .hf_api import delete_file # noqa: F401
|
|
1143
|
+
from .hf_api import delete_folder # noqa: F401
|
|
1144
|
+
from .hf_api import delete_inference_endpoint # noqa: F401
|
|
1145
|
+
from .hf_api import delete_repo # noqa: F401
|
|
1146
|
+
from .hf_api import delete_space_secret # noqa: F401
|
|
1147
|
+
from .hf_api import delete_space_storage # noqa: F401
|
|
1148
|
+
from .hf_api import delete_space_variable # noqa: F401
|
|
1149
|
+
from .hf_api import delete_tag # noqa: F401
|
|
1150
|
+
from .hf_api import delete_webhook # noqa: F401
|
|
1151
|
+
from .hf_api import disable_webhook # noqa: F401
|
|
1152
|
+
from .hf_api import duplicate_space # noqa: F401
|
|
1153
|
+
from .hf_api import edit_discussion_comment # noqa: F401
|
|
1154
|
+
from .hf_api import enable_webhook # noqa: F401
|
|
1155
|
+
from .hf_api import file_exists # noqa: F401
|
|
1156
|
+
from .hf_api import get_collection # noqa: F401
|
|
1157
|
+
from .hf_api import get_dataset_tags # noqa: F401
|
|
1158
|
+
from .hf_api import get_discussion_details # noqa: F401
|
|
1159
|
+
from .hf_api import get_full_repo_name # noqa: F401
|
|
1160
|
+
from .hf_api import get_inference_endpoint # noqa: F401
|
|
1161
|
+
from .hf_api import get_model_tags # noqa: F401
|
|
1162
|
+
from .hf_api import get_paths_info # noqa: F401
|
|
1163
|
+
from .hf_api import get_repo_discussions # noqa: F401
|
|
1164
|
+
from .hf_api import get_safetensors_metadata # noqa: F401
|
|
1165
|
+
from .hf_api import get_space_runtime # noqa: F401
|
|
1166
|
+
from .hf_api import get_space_variables # noqa: F401
|
|
1167
|
+
from .hf_api import get_token_permission # noqa: F401
|
|
1168
|
+
from .hf_api import get_user_overview # noqa: F401
|
|
1169
|
+
from .hf_api import get_webhook # noqa: F401
|
|
1170
|
+
from .hf_api import grant_access # noqa: F401
|
|
1171
|
+
from .hf_api import list_accepted_access_requests # noqa: F401
|
|
1172
|
+
from .hf_api import list_collections # noqa: F401
|
|
1173
|
+
from .hf_api import list_datasets # noqa: F401
|
|
1174
|
+
from .hf_api import list_inference_catalog # noqa: F401
|
|
1175
|
+
from .hf_api import list_inference_endpoints # noqa: F401
|
|
1176
|
+
from .hf_api import list_lfs_files # noqa: F401
|
|
1177
|
+
from .hf_api import list_liked_repos # noqa: F401
|
|
1178
|
+
from .hf_api import list_models # noqa: F401
|
|
1179
|
+
from .hf_api import list_organization_members # noqa: F401
|
|
1180
|
+
from .hf_api import list_papers # noqa: F401
|
|
1181
|
+
from .hf_api import list_pending_access_requests # noqa: F401
|
|
1182
|
+
from .hf_api import list_rejected_access_requests # noqa: F401
|
|
1183
|
+
from .hf_api import list_repo_commits # noqa: F401
|
|
1184
|
+
from .hf_api import list_repo_files # noqa: F401
|
|
1185
|
+
from .hf_api import list_repo_likers # noqa: F401
|
|
1186
|
+
from .hf_api import list_repo_refs # noqa: F401
|
|
1187
|
+
from .hf_api import list_repo_tree # noqa: F401
|
|
1188
|
+
from .hf_api import list_spaces # noqa: F401
|
|
1189
|
+
from .hf_api import list_user_followers # noqa: F401
|
|
1190
|
+
from .hf_api import list_user_following # noqa: F401
|
|
1191
|
+
from .hf_api import list_webhooks # noqa: F401
|
|
1192
|
+
from .hf_api import merge_pull_request # noqa: F401
|
|
1193
|
+
from .hf_api import model_info # noqa: F401
|
|
1194
|
+
from .hf_api import move_repo # noqa: F401
|
|
1195
|
+
from .hf_api import paper_info # noqa: F401
|
|
1196
|
+
from .hf_api import parse_safetensors_file_metadata # noqa: F401
|
|
1197
|
+
from .hf_api import pause_inference_endpoint # noqa: F401
|
|
1198
|
+
from .hf_api import pause_space # noqa: F401
|
|
1199
|
+
from .hf_api import permanently_delete_lfs_files # noqa: F401
|
|
1200
|
+
from .hf_api import preupload_lfs_files # noqa: F401
|
|
1201
|
+
from .hf_api import reject_access_request # noqa: F401
|
|
1202
|
+
from .hf_api import rename_discussion # noqa: F401
|
|
1203
|
+
from .hf_api import repo_exists # noqa: F401
|
|
1204
|
+
from .hf_api import repo_info # noqa: F401
|
|
1205
|
+
from .hf_api import repo_type_and_id_from_hf_id # noqa: F401
|
|
1206
|
+
from .hf_api import request_space_hardware # noqa: F401
|
|
1207
|
+
from .hf_api import request_space_storage # noqa: F401
|
|
1208
|
+
from .hf_api import restart_space # noqa: F401
|
|
1209
|
+
from .hf_api import resume_inference_endpoint # noqa: F401
|
|
1210
|
+
from .hf_api import revision_exists # noqa: F401
|
|
1211
|
+
from .hf_api import run_as_future # noqa: F401
|
|
1212
|
+
from .hf_api import scale_to_zero_inference_endpoint # noqa: F401
|
|
1213
|
+
from .hf_api import set_space_sleep_time # noqa: F401
|
|
1214
|
+
from .hf_api import space_info # noqa: F401
|
|
1215
|
+
from .hf_api import super_squash_history # noqa: F401
|
|
1216
|
+
from .hf_api import unlike # noqa: F401
|
|
1217
|
+
from .hf_api import update_collection_item # noqa: F401
|
|
1218
|
+
from .hf_api import update_collection_metadata # noqa: F401
|
|
1219
|
+
from .hf_api import update_inference_endpoint # noqa: F401
|
|
1220
|
+
from .hf_api import update_repo_settings # noqa: F401
|
|
1221
|
+
from .hf_api import update_repo_visibility # noqa: F401
|
|
1222
|
+
from .hf_api import update_webhook # noqa: F401
|
|
1223
|
+
from .hf_api import upload_file # noqa: F401
|
|
1224
|
+
from .hf_api import upload_folder # noqa: F401
|
|
1225
|
+
from .hf_api import upload_large_folder # noqa: F401
|
|
1226
|
+
from .hf_api import whoami # noqa: F401
|
|
1227
|
+
from .hf_file_system import HfFileSystem # noqa: F401
|
|
1228
|
+
from .hf_file_system import HfFileSystemFile # noqa: F401
|
|
1229
|
+
from .hf_file_system import HfFileSystemResolvedPath # noqa: F401
|
|
1230
|
+
from .hf_file_system import HfFileSystemStreamFile # noqa: F401
|
|
1231
|
+
from .hub_mixin import ModelHubMixin # noqa: F401
|
|
1232
|
+
from .hub_mixin import PyTorchModelHubMixin # noqa: F401
|
|
1233
|
+
from .inference._client import InferenceClient # noqa: F401
|
|
1234
|
+
from .inference._client import InferenceTimeoutError # noqa: F401
|
|
1235
|
+
from .inference._generated._async_client import \
|
|
1236
|
+
AsyncInferenceClient # noqa: F401
|
|
1237
|
+
from .inference._generated.types import \
|
|
1238
|
+
AudioClassificationInput # noqa: F401
|
|
1239
|
+
from .inference._generated.types import \
|
|
1240
|
+
AudioClassificationOutputElement # noqa: F401
|
|
1241
|
+
from .inference._generated.types import \
|
|
1242
|
+
AudioClassificationOutputTransform # noqa: F401
|
|
1243
|
+
from .inference._generated.types import \
|
|
1244
|
+
AudioClassificationParameters # noqa: F401
|
|
1245
|
+
from .inference._generated.types import AudioToAudioInput # noqa: F401
|
|
1246
|
+
from .inference._generated.types import \
|
|
1247
|
+
AudioToAudioOutputElement # noqa: F401
|
|
1248
|
+
from .inference._generated.types import \
|
|
1249
|
+
AutomaticSpeechRecognitionEarlyStoppingEnum # noqa: F401
|
|
1250
|
+
from .inference._generated.types import \
|
|
1251
|
+
AutomaticSpeechRecognitionGenerationParameters # noqa: F401
|
|
1252
|
+
from .inference._generated.types import \
|
|
1253
|
+
AutomaticSpeechRecognitionInput # noqa: F401
|
|
1254
|
+
from .inference._generated.types import \
|
|
1255
|
+
AutomaticSpeechRecognitionOutput # noqa: F401
|
|
1256
|
+
from .inference._generated.types import \
|
|
1257
|
+
AutomaticSpeechRecognitionOutputChunk # noqa: F401
|
|
1258
|
+
from .inference._generated.types import \
|
|
1259
|
+
AutomaticSpeechRecognitionParameters # noqa: F401
|
|
1260
|
+
from .inference._generated.types import ChatCompletionInput # noqa: F401
|
|
1261
|
+
from .inference._generated.types import \
|
|
1262
|
+
ChatCompletionInputFunctionDefinition # noqa: F401
|
|
1263
|
+
from .inference._generated.types import \
|
|
1264
|
+
ChatCompletionInputFunctionName # noqa: F401
|
|
1265
|
+
from .inference._generated.types import \
|
|
1266
|
+
ChatCompletionInputGrammarType # noqa: F401
|
|
1267
|
+
from .inference._generated.types import \
|
|
1268
|
+
ChatCompletionInputJSONSchema # noqa: F401
|
|
1269
|
+
from .inference._generated.types import \
|
|
1270
|
+
ChatCompletionInputMessage # noqa: F401
|
|
1271
|
+
from .inference._generated.types import \
|
|
1272
|
+
ChatCompletionInputMessageChunk # noqa: F401
|
|
1273
|
+
from .inference._generated.types import \
|
|
1274
|
+
ChatCompletionInputMessageChunkType # noqa: F401
|
|
1275
|
+
from .inference._generated.types import \
|
|
1276
|
+
ChatCompletionInputResponseFormatJSONObject # noqa: F401
|
|
1277
|
+
from .inference._generated.types import \
|
|
1278
|
+
ChatCompletionInputResponseFormatJSONSchema # noqa: F401
|
|
1279
|
+
from .inference._generated.types import \
|
|
1280
|
+
ChatCompletionInputResponseFormatText # noqa: F401
|
|
1281
|
+
from .inference._generated.types import \
|
|
1282
|
+
ChatCompletionInputStreamOptions # noqa: F401
|
|
1283
|
+
from .inference._generated.types import \
|
|
1284
|
+
ChatCompletionInputTool # noqa: F401
|
|
1285
|
+
from .inference._generated.types import \
|
|
1286
|
+
ChatCompletionInputToolCall # noqa: F401
|
|
1287
|
+
from .inference._generated.types import \
|
|
1288
|
+
ChatCompletionInputToolChoiceClass # noqa: F401
|
|
1289
|
+
from .inference._generated.types import \
|
|
1290
|
+
ChatCompletionInputToolChoiceEnum # noqa: F401
|
|
1291
|
+
from .inference._generated.types import \
|
|
1292
|
+
ChatCompletionInputURL # noqa: F401
|
|
1293
|
+
from .inference._generated.types import ChatCompletionOutput # noqa: F401
|
|
1294
|
+
from .inference._generated.types import \
|
|
1295
|
+
ChatCompletionOutputComplete # noqa: F401
|
|
1296
|
+
from .inference._generated.types import \
|
|
1297
|
+
ChatCompletionOutputFunctionDefinition # noqa: F401
|
|
1298
|
+
from .inference._generated.types import \
|
|
1299
|
+
ChatCompletionOutputLogprob # noqa: F401
|
|
1300
|
+
from .inference._generated.types import \
|
|
1301
|
+
ChatCompletionOutputLogprobs # noqa: F401
|
|
1302
|
+
from .inference._generated.types import \
|
|
1303
|
+
ChatCompletionOutputMessage # noqa: F401
|
|
1304
|
+
from .inference._generated.types import \
|
|
1305
|
+
ChatCompletionOutputToolCall # noqa: F401
|
|
1306
|
+
from .inference._generated.types import \
|
|
1307
|
+
ChatCompletionOutputTopLogprob # noqa: F401
|
|
1308
|
+
from .inference._generated.types import \
|
|
1309
|
+
ChatCompletionOutputUsage # noqa: F401
|
|
1310
|
+
from .inference._generated.types import \
|
|
1311
|
+
ChatCompletionStreamOutput # noqa: F401
|
|
1312
|
+
from .inference._generated.types import \
|
|
1313
|
+
ChatCompletionStreamOutputChoice # noqa: F401
|
|
1314
|
+
from .inference._generated.types import \
|
|
1315
|
+
ChatCompletionStreamOutputDelta # noqa: F401
|
|
1316
|
+
from .inference._generated.types import \
|
|
1317
|
+
ChatCompletionStreamOutputDeltaToolCall # noqa: F401
|
|
1318
|
+
from .inference._generated.types import \
|
|
1319
|
+
ChatCompletionStreamOutputFunction # noqa: F401
|
|
1320
|
+
from .inference._generated.types import \
|
|
1321
|
+
ChatCompletionStreamOutputLogprob # noqa: F401
|
|
1322
|
+
from .inference._generated.types import \
|
|
1323
|
+
ChatCompletionStreamOutputLogprobs # noqa: F401
|
|
1324
|
+
from .inference._generated.types import \
|
|
1325
|
+
ChatCompletionStreamOutputTopLogprob # noqa: F401
|
|
1326
|
+
from .inference._generated.types import \
|
|
1327
|
+
ChatCompletionStreamOutputUsage # noqa: F401
|
|
1328
|
+
from .inference._generated.types import DepthEstimationInput # noqa: F401
|
|
1329
|
+
from .inference._generated.types import DepthEstimationOutput # noqa: F401
|
|
1330
|
+
from .inference._generated.types import \
|
|
1331
|
+
DocumentQuestionAnsweringInput # noqa: F401
|
|
1332
|
+
from .inference._generated.types import \
|
|
1333
|
+
DocumentQuestionAnsweringInputData # noqa: F401
|
|
1334
|
+
from .inference._generated.types import \
|
|
1335
|
+
DocumentQuestionAnsweringOutputElement # noqa: F401
|
|
1336
|
+
from .inference._generated.types import \
|
|
1337
|
+
DocumentQuestionAnsweringParameters # noqa: F401
|
|
1338
|
+
from .inference._generated.types import \
|
|
1339
|
+
FeatureExtractionInput # noqa: F401
|
|
1340
|
+
from .inference._generated.types import \
|
|
1341
|
+
FeatureExtractionInputTruncationDirection # noqa: F401
|
|
1342
|
+
from .inference._generated.types import FillMaskInput # noqa: F401
|
|
1343
|
+
from .inference._generated.types import FillMaskOutputElement # noqa: F401
|
|
1344
|
+
from .inference._generated.types import FillMaskParameters # noqa: F401
|
|
1345
|
+
from .inference._generated.types import \
|
|
1346
|
+
ImageClassificationInput # noqa: F401
|
|
1347
|
+
from .inference._generated.types import \
|
|
1348
|
+
ImageClassificationOutputElement # noqa: F401
|
|
1349
|
+
from .inference._generated.types import \
|
|
1350
|
+
ImageClassificationOutputTransform # noqa: F401
|
|
1351
|
+
from .inference._generated.types import \
|
|
1352
|
+
ImageClassificationParameters # noqa: F401
|
|
1353
|
+
from .inference._generated.types import \
|
|
1354
|
+
ImageSegmentationInput # noqa: F401
|
|
1355
|
+
from .inference._generated.types import \
|
|
1356
|
+
ImageSegmentationOutputElement # noqa: F401
|
|
1357
|
+
from .inference._generated.types import \
|
|
1358
|
+
ImageSegmentationParameters # noqa: F401
|
|
1359
|
+
from .inference._generated.types import \
|
|
1360
|
+
ImageSegmentationSubtask # noqa: F401
|
|
1361
|
+
from .inference._generated.types import ImageToImageInput # noqa: F401
|
|
1362
|
+
from .inference._generated.types import ImageToImageOutput # noqa: F401
|
|
1363
|
+
from .inference._generated.types import \
|
|
1364
|
+
ImageToImageParameters # noqa: F401
|
|
1365
|
+
from .inference._generated.types import \
|
|
1366
|
+
ImageToImageTargetSize # noqa: F401
|
|
1367
|
+
from .inference._generated.types import \
|
|
1368
|
+
ImageToTextEarlyStoppingEnum # noqa: F401
|
|
1369
|
+
from .inference._generated.types import \
|
|
1370
|
+
ImageToTextGenerationParameters # noqa: F401
|
|
1371
|
+
from .inference._generated.types import ImageToTextInput # noqa: F401
|
|
1372
|
+
from .inference._generated.types import ImageToTextOutput # noqa: F401
|
|
1373
|
+
from .inference._generated.types import ImageToTextParameters # noqa: F401
|
|
1374
|
+
from .inference._generated.types import \
|
|
1375
|
+
ObjectDetectionBoundingBox # noqa: F401
|
|
1376
|
+
from .inference._generated.types import ObjectDetectionInput # noqa: F401
|
|
1377
|
+
from .inference._generated.types import \
|
|
1378
|
+
ObjectDetectionOutputElement # noqa: F401
|
|
1379
|
+
from .inference._generated.types import \
|
|
1380
|
+
ObjectDetectionParameters # noqa: F401
|
|
1381
|
+
from .inference._generated.types import Padding # noqa: F401
|
|
1382
|
+
from .inference._generated.types import \
|
|
1383
|
+
QuestionAnsweringInput # noqa: F401
|
|
1384
|
+
from .inference._generated.types import \
|
|
1385
|
+
QuestionAnsweringInputData # noqa: F401
|
|
1386
|
+
from .inference._generated.types import \
|
|
1387
|
+
QuestionAnsweringOutputElement # noqa: F401
|
|
1388
|
+
from .inference._generated.types import \
|
|
1389
|
+
QuestionAnsweringParameters # noqa: F401
|
|
1390
|
+
from .inference._generated.types import \
|
|
1391
|
+
SentenceSimilarityInput # noqa: F401
|
|
1392
|
+
from .inference._generated.types import \
|
|
1393
|
+
SentenceSimilarityInputData # noqa: F401
|
|
1394
|
+
from .inference._generated.types import SummarizationInput # noqa: F401
|
|
1395
|
+
from .inference._generated.types import SummarizationOutput # noqa: F401
|
|
1396
|
+
from .inference._generated.types import \
|
|
1397
|
+
SummarizationParameters # noqa: F401
|
|
1398
|
+
from .inference._generated.types import \
|
|
1399
|
+
SummarizationTruncationStrategy # noqa: F401
|
|
1400
|
+
from .inference._generated.types import \
|
|
1401
|
+
TableQuestionAnsweringInput # noqa: F401
|
|
1402
|
+
from .inference._generated.types import \
|
|
1403
|
+
TableQuestionAnsweringInputData # noqa: F401
|
|
1404
|
+
from .inference._generated.types import \
|
|
1405
|
+
TableQuestionAnsweringOutputElement # noqa: F401
|
|
1406
|
+
from .inference._generated.types import \
|
|
1407
|
+
TableQuestionAnsweringParameters # noqa: F401
|
|
1408
|
+
from .inference._generated.types import \
|
|
1409
|
+
Text2TextGenerationInput # noqa: F401
|
|
1410
|
+
from .inference._generated.types import \
|
|
1411
|
+
Text2TextGenerationOutput # noqa: F401
|
|
1412
|
+
from .inference._generated.types import \
|
|
1413
|
+
Text2TextGenerationParameters # noqa: F401
|
|
1414
|
+
from .inference._generated.types import \
|
|
1415
|
+
Text2TextGenerationTruncationStrategy # noqa: F401
|
|
1416
|
+
from .inference._generated.types import \
|
|
1417
|
+
TextClassificationInput # noqa: F401
|
|
1418
|
+
from .inference._generated.types import \
|
|
1419
|
+
TextClassificationOutputElement # noqa: F401
|
|
1420
|
+
from .inference._generated.types import \
|
|
1421
|
+
TextClassificationOutputTransform # noqa: F401
|
|
1422
|
+
from .inference._generated.types import \
|
|
1423
|
+
TextClassificationParameters # noqa: F401
|
|
1424
|
+
from .inference._generated.types import TextGenerationInput # noqa: F401
|
|
1425
|
+
from .inference._generated.types import \
|
|
1426
|
+
TextGenerationInputGenerateParameters # noqa: F401
|
|
1427
|
+
from .inference._generated.types import \
|
|
1428
|
+
TextGenerationInputGrammarType # noqa: F401
|
|
1429
|
+
from .inference._generated.types import TextGenerationOutput # noqa: F401
|
|
1430
|
+
from .inference._generated.types import \
|
|
1431
|
+
TextGenerationOutputBestOfSequence # noqa: F401
|
|
1432
|
+
from .inference._generated.types import \
|
|
1433
|
+
TextGenerationOutputDetails # noqa: F401
|
|
1434
|
+
from .inference._generated.types import \
|
|
1435
|
+
TextGenerationOutputFinishReason # noqa: F401
|
|
1436
|
+
from .inference._generated.types import \
|
|
1437
|
+
TextGenerationOutputPrefillToken # noqa: F401
|
|
1438
|
+
from .inference._generated.types import \
|
|
1439
|
+
TextGenerationOutputToken # noqa: F401
|
|
1440
|
+
from .inference._generated.types import \
|
|
1441
|
+
TextGenerationStreamOutput # noqa: F401
|
|
1442
|
+
from .inference._generated.types import \
|
|
1443
|
+
TextGenerationStreamOutputStreamDetails # noqa: F401
|
|
1444
|
+
from .inference._generated.types import \
|
|
1445
|
+
TextGenerationStreamOutputToken # noqa: F401
|
|
1446
|
+
from .inference._generated.types import \
|
|
1447
|
+
TextToAudioEarlyStoppingEnum # noqa: F401
|
|
1448
|
+
from .inference._generated.types import \
|
|
1449
|
+
TextToAudioGenerationParameters # noqa: F401
|
|
1450
|
+
from .inference._generated.types import TextToAudioInput # noqa: F401
|
|
1451
|
+
from .inference._generated.types import TextToAudioOutput # noqa: F401
|
|
1452
|
+
from .inference._generated.types import TextToAudioParameters # noqa: F401
|
|
1453
|
+
from .inference._generated.types import TextToImageInput # noqa: F401
|
|
1454
|
+
from .inference._generated.types import TextToImageOutput # noqa: F401
|
|
1455
|
+
from .inference._generated.types import TextToImageParameters # noqa: F401
|
|
1456
|
+
from .inference._generated.types import \
|
|
1457
|
+
TextToSpeechEarlyStoppingEnum # noqa: F401
|
|
1458
|
+
from .inference._generated.types import \
|
|
1459
|
+
TextToSpeechGenerationParameters # noqa: F401
|
|
1460
|
+
from .inference._generated.types import TextToSpeechInput # noqa: F401
|
|
1461
|
+
from .inference._generated.types import TextToSpeechOutput # noqa: F401
|
|
1462
|
+
from .inference._generated.types import \
|
|
1463
|
+
TextToSpeechParameters # noqa: F401
|
|
1464
|
+
from .inference._generated.types import TextToVideoInput # noqa: F401
|
|
1465
|
+
from .inference._generated.types import TextToVideoOutput # noqa: F401
|
|
1466
|
+
from .inference._generated.types import TextToVideoParameters # noqa: F401
|
|
1467
|
+
from .inference._generated.types import \
|
|
1468
|
+
TokenClassificationAggregationStrategy # noqa: F401
|
|
1469
|
+
from .inference._generated.types import \
|
|
1470
|
+
TokenClassificationInput # noqa: F401
|
|
1471
|
+
from .inference._generated.types import \
|
|
1472
|
+
TokenClassificationOutputElement # noqa: F401
|
|
1473
|
+
from .inference._generated.types import \
|
|
1474
|
+
TokenClassificationParameters # noqa: F401
|
|
1475
|
+
from .inference._generated.types import TranslationInput # noqa: F401
|
|
1476
|
+
from .inference._generated.types import TranslationOutput # noqa: F401
|
|
1477
|
+
from .inference._generated.types import TranslationParameters # noqa: F401
|
|
1478
|
+
from .inference._generated.types import \
|
|
1479
|
+
TranslationTruncationStrategy # noqa: F401
|
|
1480
|
+
from .inference._generated.types import TypeEnum # noqa: F401
|
|
1481
|
+
from .inference._generated.types import \
|
|
1482
|
+
VideoClassificationInput # noqa: F401
|
|
1483
|
+
from .inference._generated.types import \
|
|
1484
|
+
VideoClassificationOutputElement # noqa: F401
|
|
1485
|
+
from .inference._generated.types import \
|
|
1486
|
+
VideoClassificationOutputTransform # noqa: F401
|
|
1487
|
+
from .inference._generated.types import \
|
|
1488
|
+
VideoClassificationParameters # noqa: F401
|
|
1489
|
+
from .inference._generated.types import \
|
|
1490
|
+
VisualQuestionAnsweringInput # noqa: F401
|
|
1491
|
+
from .inference._generated.types import \
|
|
1492
|
+
VisualQuestionAnsweringInputData # noqa: F401
|
|
1493
|
+
from .inference._generated.types import \
|
|
1494
|
+
VisualQuestionAnsweringOutputElement # noqa: F401
|
|
1495
|
+
from .inference._generated.types import \
|
|
1496
|
+
VisualQuestionAnsweringParameters # noqa: F401
|
|
1497
|
+
from .inference._generated.types import \
|
|
1498
|
+
ZeroShotClassificationInput # noqa: F401
|
|
1499
|
+
from .inference._generated.types import \
|
|
1500
|
+
ZeroShotClassificationOutputElement # noqa: F401
|
|
1501
|
+
from .inference._generated.types import \
|
|
1502
|
+
ZeroShotClassificationParameters # noqa: F401
|
|
1503
|
+
from .inference._generated.types import \
|
|
1504
|
+
ZeroShotImageClassificationInput # noqa: F401
|
|
1505
|
+
from .inference._generated.types import \
|
|
1506
|
+
ZeroShotImageClassificationOutputElement # noqa: F401
|
|
1507
|
+
from .inference._generated.types import \
|
|
1508
|
+
ZeroShotImageClassificationParameters # noqa: F401
|
|
1509
|
+
from .inference._generated.types import \
|
|
1510
|
+
ZeroShotObjectDetectionBoundingBox # noqa: F401
|
|
1511
|
+
from .inference._generated.types import \
|
|
1512
|
+
ZeroShotObjectDetectionInput # noqa: F401
|
|
1513
|
+
from .inference._generated.types import \
|
|
1514
|
+
ZeroShotObjectDetectionOutputElement # noqa: F401
|
|
1515
|
+
from .inference._generated.types import \
|
|
1516
|
+
ZeroShotObjectDetectionParameters # noqa: F401
|
|
1422
1517
|
from .inference._mcp.agent import Agent # noqa: F401
|
|
1423
1518
|
from .inference._mcp.mcp_client import MCPClient # noqa: F401
|
|
1424
1519
|
from .inference_api import InferenceApi # noqa: F401
|
|
1425
|
-
from .keras_mixin import
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
from .repocard import
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
from .repocard_data import
|
|
1442
|
-
CardData, # noqa: F401
|
|
1443
|
-
DatasetCardData, # noqa: F401
|
|
1444
|
-
EvalResult, # noqa: F401
|
|
1445
|
-
ModelCardData, # noqa: F401
|
|
1446
|
-
SpaceCardData, # noqa: F401
|
|
1447
|
-
)
|
|
1520
|
+
from .keras_mixin import KerasModelHubMixin # noqa: F401
|
|
1521
|
+
from .keras_mixin import from_pretrained_keras # noqa: F401
|
|
1522
|
+
from .keras_mixin import push_to_hub_keras # noqa: F401
|
|
1523
|
+
from .keras_mixin import save_pretrained_keras # noqa: F401
|
|
1524
|
+
from .repocard import DatasetCard # noqa: F401
|
|
1525
|
+
from .repocard import ModelCard # noqa: F401
|
|
1526
|
+
from .repocard import RepoCard # noqa: F401
|
|
1527
|
+
from .repocard import SpaceCard # noqa: F401
|
|
1528
|
+
from .repocard import metadata_eval_result # noqa: F401
|
|
1529
|
+
from .repocard import metadata_load # noqa: F401
|
|
1530
|
+
from .repocard import metadata_save # noqa: F401
|
|
1531
|
+
from .repocard import metadata_update # noqa: F401
|
|
1532
|
+
from .repocard_data import CardData # noqa: F401
|
|
1533
|
+
from .repocard_data import DatasetCardData # noqa: F401
|
|
1534
|
+
from .repocard_data import EvalResult # noqa: F401
|
|
1535
|
+
from .repocard_data import ModelCardData # noqa: F401
|
|
1536
|
+
from .repocard_data import SpaceCardData # noqa: F401
|
|
1448
1537
|
from .repository import Repository # noqa: F401
|
|
1449
|
-
from .serialization import
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
split_state_dict_into_shards_factory
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
from .serialization._dduf import
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
from .utils import
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
get_session, # noqa: F401
|
|
1481
|
-
get_token, # noqa: F401
|
|
1482
|
-
logging, # noqa: F401
|
|
1483
|
-
scan_cache_dir, # noqa: F401
|
|
1484
|
-
)
|
|
1538
|
+
from .serialization import StateDictSplit # noqa: F401
|
|
1539
|
+
from .serialization import get_tf_storage_size # noqa: F401
|
|
1540
|
+
from .serialization import get_torch_storage_id # noqa: F401
|
|
1541
|
+
from .serialization import get_torch_storage_size # noqa: F401
|
|
1542
|
+
from .serialization import load_state_dict_from_file # noqa: F401
|
|
1543
|
+
from .serialization import load_torch_model # noqa: F401
|
|
1544
|
+
from .serialization import save_torch_model # noqa: F401
|
|
1545
|
+
from .serialization import save_torch_state_dict # noqa: F401
|
|
1546
|
+
from .serialization import \
|
|
1547
|
+
split_state_dict_into_shards_factory # noqa: F401
|
|
1548
|
+
from .serialization import split_tf_state_dict_into_shards # noqa: F401
|
|
1549
|
+
from .serialization import split_torch_state_dict_into_shards # noqa: F401
|
|
1550
|
+
from .serialization._dduf import DDUFEntry # noqa: F401
|
|
1551
|
+
from .serialization._dduf import export_entries_as_dduf # noqa: F401
|
|
1552
|
+
from .serialization._dduf import export_folder_as_dduf # noqa: F401
|
|
1553
|
+
from .serialization._dduf import read_dduf_file # noqa: F401
|
|
1554
|
+
from .utils import CachedFileInfo # noqa: F401
|
|
1555
|
+
from .utils import CachedRepoInfo # noqa: F401
|
|
1556
|
+
from .utils import CachedRevisionInfo # noqa: F401
|
|
1557
|
+
from .utils import CacheNotFound # noqa: F401
|
|
1558
|
+
from .utils import CorruptedCacheException # noqa: F401
|
|
1559
|
+
from .utils import DeleteCacheStrategy # noqa: F401
|
|
1560
|
+
from .utils import HFCacheInfo # noqa: F401
|
|
1561
|
+
from .utils import HfFolder # noqa: F401
|
|
1562
|
+
from .utils import cached_assets_path # noqa: F401
|
|
1563
|
+
from .utils import configure_http_backend # noqa: F401
|
|
1564
|
+
from .utils import dump_environment_info # noqa: F401
|
|
1565
|
+
from .utils import get_session # noqa: F401
|
|
1566
|
+
from .utils import get_token # noqa: F401
|
|
1567
|
+
from .utils import logging # noqa: F401
|
|
1568
|
+
from .utils import scan_cache_dir # noqa: F401
|
|
@@ -347,9 +347,12 @@ def _format_chat_completion_stream_output(
|
|
|
347
347
|
|
|
348
348
|
|
|
349
349
|
async def _async_yield_from(client: "ClientSession", response: "ClientResponse") -> AsyncIterable[bytes]:
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
350
|
+
try:
|
|
351
|
+
async for byte_payload in response.content:
|
|
352
|
+
yield byte_payload.strip()
|
|
353
|
+
finally:
|
|
354
|
+
# Always close the underlying HTTP session to avoid resource leaks
|
|
355
|
+
await client.close()
|
|
353
356
|
|
|
354
357
|
|
|
355
358
|
# "TGI servers" are servers running with the `text-generation-inference` backend.
|
|
@@ -54,7 +54,6 @@ TASK_COMPLETE_TOOL: ChatCompletionInputTool = ChatCompletionInputTool.parse_obj(
|
|
|
54
54
|
"function": {
|
|
55
55
|
"name": "task_complete",
|
|
56
56
|
"description": "Call this tool when the task given by the user is complete",
|
|
57
|
-
"parameters": {"type": "object", "properties": {}},
|
|
58
57
|
},
|
|
59
58
|
}
|
|
60
59
|
)
|
|
@@ -65,7 +64,6 @@ ASK_QUESTION_TOOL: ChatCompletionInputTool = ChatCompletionInputTool.parse_obj(
|
|
|
65
64
|
"function": {
|
|
66
65
|
"name": "ask_question",
|
|
67
66
|
"description": "Ask the user for more info required to solve or clarify their problem.",
|
|
68
|
-
"parameters": {"type": "object", "properties": {}},
|
|
69
67
|
},
|
|
70
68
|
}
|
|
71
69
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface-hub
|
|
3
|
-
Version: 0.33.
|
|
3
|
+
Version: 0.33.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=
|
|
1
|
+
huggingface_hub/__init__.py,sha256=MqVM6MtPKP5xeJOKbmopcSyxyjft9FittQT17GAM7Mo,60753
|
|
2
2
|
huggingface_hub/_commit_api.py,sha256=ZbmuIhFdF8B3F_cvGtxorka7MmIQOk8oBkCtYltnCvI,39456
|
|
3
3
|
huggingface_hub/_commit_scheduler.py,sha256=tfIoO1xWHjTJ6qy6VS6HIoymDycFPg0d6pBSZprrU2U,14679
|
|
4
4
|
huggingface_hub/_inference_endpoints.py,sha256=ahmbPcEXsJ_JcMb9TDgdkD8Z2z9uytkFG3_1o6dTm8g,17598
|
|
@@ -44,7 +44,7 @@ huggingface_hub/commands/user.py,sha256=_4rjCrP84KqtqCMn-r3YWLuGLrnklOWTdJFVTNFM
|
|
|
44
44
|
huggingface_hub/commands/version.py,sha256=vfCJn7GO1m-DtDmbdsty8_RTVtnZ7lX6MJsx0Bf4e-s,1266
|
|
45
45
|
huggingface_hub/inference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
46
46
|
huggingface_hub/inference/_client.py,sha256=3d1P9RT2DA4g1gAIxnq6g2vjzeCyX300F5afREEpjhc,161775
|
|
47
|
-
huggingface_hub/inference/_common.py,sha256=
|
|
47
|
+
huggingface_hub/inference/_common.py,sha256=5N0jYpdU6EA6GvkK8duaxl5i-WzISDF1SGNXG6lYarQ,14890
|
|
48
48
|
huggingface_hub/inference/_generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
49
49
|
huggingface_hub/inference/_generated/_async_client.py,sha256=D3Kv_EId7tMoU6ED41_2SHLrw2jlJIW2q0vHx0SxTpk,167696
|
|
50
50
|
huggingface_hub/inference/_generated/types/__init__.py,sha256=qI8Eu9WcBcKhVkLli6YniGHpfiJ9MLqtzmwXX35E7bA,6443
|
|
@@ -84,7 +84,7 @@ huggingface_hub/inference/_mcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
84
84
|
huggingface_hub/inference/_mcp/_cli_hacks.py,sha256=cMZirVFe4N0EM9Nzzs9aEmzUBUEBYR4oYZpByTWlZCM,3182
|
|
85
85
|
huggingface_hub/inference/_mcp/agent.py,sha256=VahvSqldiC1R72CFH4T05l80uEXl5OjLwboWQFUJbsw,4281
|
|
86
86
|
huggingface_hub/inference/_mcp/cli.py,sha256=bvcS8NCr8sEqB4GGaqL85kytri8JyGjbwtI5A7DoDWA,9031
|
|
87
|
-
huggingface_hub/inference/_mcp/constants.py,sha256=
|
|
87
|
+
huggingface_hub/inference/_mcp/constants.py,sha256=WJNOnsUUU7R2x9HTGgghhIkakxooLORrieS1FeJ1erI,2273
|
|
88
88
|
huggingface_hub/inference/_mcp/mcp_client.py,sha256=ndaTcZZPbU1ZTNUeB9-WdaOx7bHD3lsrXnKxCeiwpUg,15788
|
|
89
89
|
huggingface_hub/inference/_mcp/types.py,sha256=e6bcvFt2nu2hMaX37hY7tsRm2FY2DoHRNyvz9_AbkH0,743
|
|
90
90
|
huggingface_hub/inference/_mcp/utils.py,sha256=VsRWl0fuSZDS0zNT9n7FOMSlzA0UBbP8p8xWKWDt2Pc,4093
|
|
@@ -141,9 +141,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=iAaepavFZ5Dhfa5n8KozRfQprKmvcjS
|
|
|
141
141
|
huggingface_hub/utils/logging.py,sha256=0A8fF1yh3L9Ka_bCDX2ml4U5Ht0tY8Dr3JcbRvWFuwo,4909
|
|
142
142
|
huggingface_hub/utils/sha.py,sha256=OFnNGCba0sNcT2gUwaVCJnldxlltrHHe0DS_PCpV3C4,2134
|
|
143
143
|
huggingface_hub/utils/tqdm.py,sha256=xAKcyfnNHsZ7L09WuEM5Ew5-MDhiahLACbbN2zMmcLs,10671
|
|
144
|
-
huggingface_hub-0.33.
|
|
145
|
-
huggingface_hub-0.33.
|
|
146
|
-
huggingface_hub-0.33.
|
|
147
|
-
huggingface_hub-0.33.
|
|
148
|
-
huggingface_hub-0.33.
|
|
149
|
-
huggingface_hub-0.33.
|
|
144
|
+
huggingface_hub-0.33.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
145
|
+
huggingface_hub-0.33.5.dist-info/METADATA,sha256=EaHQjVt6E7AziCaNxrsY5HVn32_fn-R9e4bTJJGPW9I,14777
|
|
146
|
+
huggingface_hub-0.33.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
147
|
+
huggingface_hub-0.33.5.dist-info/entry_points.txt,sha256=uelw0-fu0kd-CxIuOsR1bsjLIFnAaMQ6AIqluJYDhQw,184
|
|
148
|
+
huggingface_hub-0.33.5.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
|
|
149
|
+
huggingface_hub-0.33.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|