Update README.md
Browse files
README.md
CHANGED
|
@@ -47,7 +47,7 @@ You can then use the model to compute embeddings like this:
|
|
| 47 |
import { pipeline } from '@huggingface/transformers';
|
| 48 |
|
| 49 |
// Create a feature-extraction pipeline
|
| 50 |
-
const extractor = await pipeline('feature-extraction', '
|
| 51 |
|
| 52 |
// Compute sentence embeddings
|
| 53 |
const sentences = ['This is an example sentence', 'Each sentence is converted'];
|
|
|
|
| 47 |
import { pipeline } from '@huggingface/transformers';
|
| 48 |
|
| 49 |
// Create a feature-extraction pipeline
|
| 50 |
+
const extractor = await pipeline('feature-extraction', 'onnx-community/all-MiniLM-L6-v2-ONNX');
|
| 51 |
|
| 52 |
// Compute sentence embeddings
|
| 53 |
const sentences = ['This is an example sentence', 'Each sentence is converted'];
|