UNPKG

@huggingface/hub

Version:

Utilities to interact with the Hugging Face hub

20 lines 857 B
import type { CredentialsParams } from "../types/public"; import type { CommitOutput, CommitParams, ContentSource } from "./commit"; export declare function uploadFiles(params: { repo: CommitParams["repo"]; files: Array<URL | File | { path: string; content: ContentSource; }>; commitTitle?: CommitParams["title"]; commitDescription?: CommitParams["description"]; hubUrl?: CommitParams["hubUrl"]; branch?: CommitParams["branch"]; isPullRequest?: CommitParams["isPullRequest"]; parentCommit?: CommitParams["parentCommit"]; fetch?: CommitParams["fetch"]; useWebWorkers?: CommitParams["useWebWorkers"]; maxFolderDepth?: CommitParams["maxFolderDepth"]; abortSignal?: CommitParams["abortSignal"]; } & Partial<CredentialsParams>): Promise<CommitOutput>; //# sourceMappingURL=upload-files.d.ts.map