Skip to content

Commit

Permalink
fixup! πŸ“ Document uploadFilesWithProgress
Browse files Browse the repository at this point in the history
  • Loading branch information
coyotte508 committed Nov 7, 2023
1 parent efe3cc4 commit ac85b6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Check out the [full documentation](https://huggingface.co/docs/huggingface.js/hu
For some of the calls, you need to create an account and generate an [access token](https://huggingface.co/settings/tokens).

```ts
import { createRepo, uploadFiles, deleteFile, deleteRepo, listFiles, whoAmI } from "@huggingface/hub";
import { createRepo, uploadFiles, uploadFilesWithProgress, deleteFile, deleteRepo, listFiles, whoAmI } from "@huggingface/hub";
import type { RepoDesignation, Credentials } from "@huggingface/hub";

const repo: RepoDesignation = { type: "model", name: "myname/some-model" };
Expand Down Expand Up @@ -66,7 +66,7 @@ await uploadFiles({

// or

for await (const progressEvent of await uploadFiles({
for await (const progressEvent of await uploadFilesWithProgress({
repo,
credentials,
files: [
Expand Down

0 comments on commit ac85b6a

Please sign in to comment.