📝 Update README.md samples for Transformers.js v3
Browse files
README.md
CHANGED
@@ -9,8 +9,7 @@ https://huggingface.co/jinaai/jina-embeddings-v2-small-en with ONNX weights to b
|
|
9 |
## Usage with 🤗 Transformers.js
|
10 |
|
11 |
```js
|
12 |
-
|
13 |
-
import { pipeline, cos_sim } from '@xenova/transformers';
|
14 |
|
15 |
// Create feature extraction pipeline
|
16 |
const extractor = await pipeline('feature-extraction', 'Xenova/jina-embeddings-v2-small-en',
|
|
|
9 |
## Usage with 🤗 Transformers.js
|
10 |
|
11 |
```js
|
12 |
+
import { pipeline, cos_sim } from '@huggingface/transformers';
|
|
|
13 |
|
14 |
// Create feature extraction pipeline
|
15 |
const extractor = await pipeline('feature-extraction', 'Xenova/jina-embeddings-v2-small-en',
|