Views
No views yet
config.jsontokenizer.jsontokenizer_config.jsonvocab.txtonnx/model_quantized.onnx1import { pipeline } from '@xenova/transformers';
2
3// Load the Spanish QA pipeline
4pipeline('question-answering', 'jestevesv/distilbert-base-spanish-uncased-finetuned-qa-mlqa-onnx', { quantized: true })
5 .then(qa => qa(
6 '¿Cuál es la capital de Francia?',
7 'La capital de Francia es París.'
8 ))
9 .then(result => console.log(result))
10 .catch(err => console.error(err));