Files changed (1) hide show
  1. README.md +6 -1
README.md CHANGED
@@ -5,4 +5,9 @@ pipeline_tag: translation
5
 
6
  https://huggingface.co/Helsinki-NLP/opus-mt-ar-en with ONNX weights to be compatible with Transformers.js.
7
 
8
- Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using [🤗 Optimum](https://huggingface.co/docs/optimum/index) and structuring your repo like this one (with ONNX weights located in a subfolder named `onnx`).
 
 
 
 
 
 
5
 
6
  https://huggingface.co/Helsinki-NLP/opus-mt-ar-en with ONNX weights to be compatible with Transformers.js.
7
 
8
+ Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using [🤗 Optimum](https://huggingface.co/docs/optimum/index) and structuring your repo like this one (with ONNX weights located in a subfolder named `onnx`).
9
+ // npm i @xenova/transformers
10
+ import { pipeline } from '@xenova/transformers';
11
+
12
+ // Allocate pipeline
13
+ const pipe = await pipeline('translation', 'Xenova/opus-mt-ar-en');