UNPKG

@huggingface/hub

Version:

Utilities to interact with the Hugging Face hub

134 lines (133 loc) 2.51 kB
import { DATASET_EXPANDABLE_KEYS, DATASET_EXPAND_KEYS, DEFAULT_REVISION, HUB_URL, HubApiError, InvalidApiResponseFormatError, MODEL_EXPANDABLE_KEYS, MODEL_EXPAND_KEYS, REGEX_COMMIT_HASH, REPO_ID_SEPARATOR, RE_SAFETENSORS_FILE, RE_SAFETENSORS_INDEX_FILE, RE_SAFETENSORS_SHARD_FILE, SAFETENSORS_FILE, SAFETENSORS_INDEX_FILE, SPACE_EXPANDABLE_KEYS, SPACE_EXPAND_KEYS, XetBlob, checkRepoAccess, commit, commitIter, countCommits, createBranch, createCollection, createRepo, datasetInfo, deleteBranch, deleteCollection, deleteFile, deleteFiles, deleteRepo, downloadFile, downloadFileToCacheDir, fileDownloadInfo, fileExists, getBlobStat, getHFHubCachePath, getRepoFolderName, listCollections, listCommits, listDatasets, listFiles, listModels, listSpaces, modelInfo, oauthHandleRedirect, oauthHandleRedirectIfPresent, oauthLoginUrl, parseRepoType, parseSafetensorsMetadata, parseSafetensorsShardFilename, pathsInfo, repoExists, scanCacheDir, scanCachedRepo, scanRefsDir, scanSnapshotDir, sha256, snapshotDownload, spaceInfo, uploadFile, uploadFiles, uploadFilesWithProgress, whoAmI } from "./chunk-ZRFO5QHC.mjs"; import "./chunk-GAR7ORU2.mjs"; export { DATASET_EXPANDABLE_KEYS, DATASET_EXPAND_KEYS, DEFAULT_REVISION, HUB_URL, HubApiError, InvalidApiResponseFormatError, MODEL_EXPANDABLE_KEYS, MODEL_EXPAND_KEYS, REGEX_COMMIT_HASH, REPO_ID_SEPARATOR, RE_SAFETENSORS_FILE, RE_SAFETENSORS_INDEX_FILE, RE_SAFETENSORS_SHARD_FILE, SAFETENSORS_FILE, SAFETENSORS_INDEX_FILE, SPACE_EXPANDABLE_KEYS, SPACE_EXPAND_KEYS, XetBlob as __internal_XetBlob, sha256 as __internal_sha256, checkRepoAccess, commit, commitIter, countCommits, createBranch, createCollection, createRepo, datasetInfo, deleteBranch, deleteCollection, deleteFile, deleteFiles, deleteRepo, downloadFile, downloadFileToCacheDir, fileDownloadInfo, fileExists, getBlobStat, getHFHubCachePath, getRepoFolderName, listCollections, listCommits, listDatasets, listFiles, listModels, listSpaces, modelInfo, oauthHandleRedirect, oauthHandleRedirectIfPresent, oauthLoginUrl, parseRepoType, parseSafetensorsMetadata, parseSafetensorsShardFilename, pathsInfo, repoExists, scanCacheDir, scanCachedRepo, scanRefsDir, scanSnapshotDir, snapshotDownload, spaceInfo, uploadFile, uploadFiles, uploadFilesWithProgress, whoAmI };