Skip to content

Commit 5e08456

Browse files
author
machineuser
committed
🔖 @hugginface/inference v1.7.1
1 parent 7188b5c commit 5e08456

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ You can run our packages with vanilla JS, without any bundler, by using a CDN or
4848
```html
4949

5050
<script type="module">
51-
import { HfInference } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected].0/+esm';
51+
import { HfInference } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected].1/+esm';
5252
import { createRepo, commit, deleteRepo, listFiles } from "https://cdn.jsdelivr.net/npm/@huggingface/[email protected]/+esm";
5353
</script>
5454
```

‎docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ You can run our packages with vanilla JS, without any bundler, by using a CDN or
4848
```html
4949

5050
<script type="module">
51-
import { HfInference } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected].0/+esm';
51+
import { HfInference } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected].1/+esm';
5252
import { createRepo, commit, deleteRepo, listFiles } from "https://cdn.jsdelivr.net/npm/@huggingface/[email protected]/+esm";
5353
</script>
5454
```

‎docs/inference/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ await hf.textGeneration({
7272
inputs: 'The answer to the universe is'
7373
})
7474

75-
for await const (output of hf.textGenerationStream({
75+
for await (const output of hf.textGenerationStream({
7676
model: "google/flan-t5-xxl",
77-
inputs: 'repeat "one two three four"'
77+
inputs: 'repeat "one two three four"',
78+
parameters: { max_new_tokens: 250 }
7879
})) {
7980
console.log(output.token.text, output.generated_text);
8081
}

‎packages/inference/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@huggingface/inference",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"license": "MIT",
55
"author": "Tim Mikeladze <[email protected]>",
66
"description": "Typescript wrapper for the Hugging Face Inference API",

0 commit comments

Comments
 (0)