Xenova HF staff commited on
Commit
38287a9
1 Parent(s): affc1c9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -0
README.md CHANGED
@@ -2706,6 +2706,13 @@ print('similarities:', similarities)
2706
 
2707
  ### Transformers.js
2708
 
 
 
 
 
 
 
 
2709
  ```js
2710
  import { pipeline, cos_sim } from '@xenova/transformers';
2711
 
 
2706
 
2707
  ### Transformers.js
2708
 
2709
+ 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:
2710
+ ```bash
2711
+ npm i @xenova/transformers
2712
+ ```
2713
+
2714
+ You can then use the model to compute embeddings like this:
2715
+
2716
  ```js
2717
  import { pipeline, cos_sim } from '@xenova/transformers';
2718