Views
No views yet
1import { pipeline } from '@xenova/transformers';
2
3const classifier = await pipeline('text-classification', 'nicoamoretti/roberta-ai-detector-onnx');
4const result = await classifier('Your text here');
5// [{ label: 'Real', score: 0.95 }] or [{ label: 'Fake', score: 0.85 }]