Xenova HF staff commited on
Commit
6fa4bf6
1 Parent(s): 5f8986e

`@xenova/transformers` -> `@huggingface/transformers`

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -7,15 +7,15 @@ https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2 with ONNX weights
7
 
8
  ## Usage (Transformers.js)
9
 
10
- 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/@xenova/transformers) using:
11
  ```bash
12
- npm i @xenova/transformers
13
  ```
14
 
15
  You can then use the model to compute embeddings like this:
16
 
17
  ```js
18
- import { pipeline } from '@xenova/transformers';
19
 
20
  // Create a feature-extraction pipeline
21
  const extractor = await pipeline('feature-extraction', 'Xenova/all-MiniLM-L6-v2');
 
7
 
8
  ## Usage (Transformers.js)
9
 
10
+ 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:
11
  ```bash
12
+ npm i @huggingface/transformers
13
  ```
14
 
15
  You can then use the model to compute embeddings like this:
16
 
17
  ```js
18
+ import { pipeline } from '@huggingface/transformers';
19
 
20
  // Create a feature-extraction pipeline
21
  const extractor = await pipeline('feature-extraction', 'Xenova/all-MiniLM-L6-v2');