From 0ed02e58204365b47c765861856025e49cfd651a Mon Sep 17 00:00:00 2001 From: Arsala Khan <19757203+ArsalaBangash@users.noreply.github.com> Date: Sat, 21 Oct 2023 21:38:51 +0500 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=93=9D=20Fix=20Hub=20Deno=20Import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/hub/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/hub/README.md b/packages/hub/README.md index c5f5e7f3d..d233a0c6c 100644 --- a/packages/hub/README.md +++ b/packages/hub/README.md @@ -16,9 +16,9 @@ yarn add @huggingface/hub ```ts // esm.sh -import { HfInference } from "https://esm.sh/@huggingface/hub" +import { HfHub } from "https://esm.sh/@huggingface/hub" // or npm: -import { HfInference } from "npm:@huggingface/hub" +import { HfHub } from "npm:@huggingface/hub" ``` Check out the [full documentation](https://huggingface.co/docs/huggingface.js/hub/README). @@ -86,4 +86,4 @@ Under the hood, `@huggingface/hub` uses a lazy blob implementation to load the f ## Dependencies - `hash-wasm` : Only used in the browser, when committing files over 10 MB. Browsers do not natively support streaming sha256 computations. -- `type-fest` : Typings only \ No newline at end of file +- `type-fest` : Typings only From c5cc0e6efba3aceb699c7084304972a9123ebe27 Mon Sep 17 00:00:00 2001 From: Arsala Khan <19757203+ArsalaBangash@users.noreply.github.com> Date: Sun, 22 Oct 2023 16:07:06 +0500 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9D=20Fix=20Hub=20Deno=20Import=20?= =?UTF-8?q?Docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/hub/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hub/README.md b/packages/hub/README.md index d233a0c6c..d5ae9298e 100644 --- a/packages/hub/README.md +++ b/packages/hub/README.md @@ -16,9 +16,9 @@ yarn add @huggingface/hub ```ts // esm.sh -import { HfHub } from "https://esm.sh/@huggingface/hub" +import { uploadFiles, listModels } from "https://esm.sh/@huggingface/hub" // or npm: -import { HfHub } from "npm:@huggingface/hub" +import { uploadFiles, listModels } from "npm:@huggingface/hub" ``` Check out the [full documentation](https://huggingface.co/docs/huggingface.js/hub/README).