opus-mt-ar-en / README.md
Alaaabubaker's picture
Update README.md
2a4c76c
metadata
library_name: transformers.js
pipeline_tag: translation

https://huggingface.co/Helsinki-NLP/opus-mt-ar-en with ONNX weights to be compatible with Transformers.js.

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 and structuring your repo like this one (with ONNX weights located in a subfolder named onnx). // npm i @xenova/transformers import { pipeline } from '@xenova/transformers';

// Allocate pipeline const pipe = await pipeline('translation', 'Xenova/opus-mt-ar-en');