Update README.md
Browse files
README.md
CHANGED
@@ -6,15 +6,15 @@ tags:
|
|
6 |
|
7 |
## Usage (Transformers.js)
|
8 |
|
9 |
-
If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@
|
10 |
```bash
|
11 |
-
npm i @
|
12 |
```
|
13 |
|
14 |
You can then use the model to generate text like this:
|
15 |
|
16 |
```js
|
17 |
-
import { pipeline } from "@
|
18 |
|
19 |
// Create a text-generation pipeline
|
20 |
const generator = await pipeline('text-generation', 'Xenova/llama2.c-stories15M');
|
|
|
6 |
|
7 |
## Usage (Transformers.js)
|
8 |
|
9 |
+
If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@huggingface/transformers) using:
|
10 |
```bash
|
11 |
+
npm i @huggingface/transformers
|
12 |
```
|
13 |
|
14 |
You can then use the model to generate text like this:
|
15 |
|
16 |
```js
|
17 |
+
import { pipeline } from "@huggingface/transformers";
|
18 |
|
19 |
// Create a text-generation pipeline
|
20 |
const generator = await pipeline('text-generation', 'Xenova/llama2.c-stories15M');
|