Huggingface.js documentation
Arayüz: CopyProgressEvent
@huggingface/inference
Inference Client KullanAPI referansı
Sınıflar
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
Arayüzler
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntryLoggerSeçeneklerTextGenerationInputTextGenerationOutputTextGenerationStreamBestOfSequenceTextGenerationStreamDetailsTextGenerationStreamOutputTextGenerationStreamPrefillTokenTextGenerationStreamTokenUrlParams
Modüller
@huggingface/hub
Hub ile etkileşime girinAPI Referansı
Sınıflar
Arayüzler
AuthInfoCachedFileInfoCachedRepoInfoCachedRevisionInfoCommitCopyFileCommitDataCommitDeletedEntryCommitEditFileCommitEditFileParamsCommitFileCommitInfoCommitOutputCopyDestinationCopyFilesEntryCopyProgressEventCopySourceKimlik BilgileriDatasetEntryFileDownloadInfoOutputHFCacheInfoJobVolumeLfsPathInfoListFileEntryMlxQuantizationConfigModelConfigModelDerivedFieldsModelEntryOAuthResultParallelDownloadOptionsPathInfoQuantizationConfigRangeEditCacheEntryRepoIdSafetensorsIndexJsonSafetensorsShardFileInfoSecurityFileStatusSpaceEntrySpaceResourceConfigSpaceResourceRequirementSpaceRuntimeTensorInfoUserInfoWhoAmIAppWhoAmIOrgWhoAmIUserXetFileInfoXetReadToken
@huggingface/mcp-client
@huggingface/tiny-agents
@huggingface/space-header
@huggingface/gguf
@huggingface/lerobot
@huggingface/usd-web-viewer
Arayüz: CopyProgressEvent
copyFileIter / copyFilesIter / copyFolderIter tarafından üretilen ilerleme olayları.
Şu anda yalnızca fileDownloaded olayı yayımlanır: sunucu tarafında kopyalanamayan ve indirilmesi gereken her kaynak dosya için bir olay üretilir (küçük, git'te saklanan dosyalar). Xet destekli dosyalar sunucu tarafında kopyalanır ve olay üretmez.
Özellikler
indirildi
• indirilen: number
Şu ana kadar indirilen dosya sayısı (bunu da dahil).
Tanımlandığı yer
packages/hub/src/lib/copy-files.ts:27
olay
• olay: "fileDownloaded"
Tanımlandığı yer
packages/hub/src/lib/copy-files.ts:23
path
• path: string
Az önce indirilen dosyanın kaynak yolu.
Tanımlandığı yer
packages/hub/src/lib/copy-files.ts:25
toplam
• toplam: number
İndirilecek dosyaların toplam sayısı.
Tanımlandığı yer
packages/hub/src/lib/copy-files.ts:29
Update on GitHub