Fix readme
Browse files
README.md
CHANGED
@@ -13,11 +13,11 @@ Generated from [roneneldan/TinyStories-1M](https://huggingface.co/roneneldan/Tin
|
|
13 |
For use with [Transformers.js](https://huggingface.co/docs/transformers.js)
|
14 |
|
15 |
```js
|
16 |
-
const
|
17 |
"text-generation",
|
18 |
"mkly/TinyStories-1M-ONNX",
|
19 |
);
|
20 |
-
const response = await
|
21 |
"Some example text",
|
22 |
{
|
23 |
max_new_tokens: 500,
|
|
|
13 |
For use with [Transformers.js](https://huggingface.co/docs/transformers.js)
|
14 |
|
15 |
```js
|
16 |
+
const pipe = await pipeline(
|
17 |
"text-generation",
|
18 |
"mkly/TinyStories-1M-ONNX",
|
19 |
);
|
20 |
+
const response = await pipe(
|
21 |
"Some example text",
|
22 |
{
|
23 |
max_new_tokens: 500,
|