xformjs / deberta.js
boazchung's picture
Update deberta.js
d316d90 verified
raw
history blame
278 Bytes
async function makepipe() {
//return await pipeline('sentiment-analysis');
return await window.pipeline('sentiment-analysis');
}
async function main() {
let pipe = await makepipe();
let out = await pipe('I love transformers!');
console.log(out);
}
main();