Xenova HF Staff commited on
Commit
2a90286
·
verified ·
1 Parent(s): d888829

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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', 'Xenova/all-MiniLM-L6-v2');
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'];