File size: 278 Bytes
f5fd590
521f9a6
d316d90
 
521f9a6
 
 
 
 
 
 
 
fde6c75
1
2
3
4
5
6
7
8
9
10
11
12
13

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();