Downloads · 30 days
13
8% of all-time downloads
nicoamoretti/roberta-ai-detector-onnx
roberta-ai-detector-onnx is a text classification model from nicoamoretti. Use it when you need a label for a piece of text. It is set up for transformers.js. The card lists the license as mit.
AI-generated text detector, converted to ONNX with fixed tokenizer for Transformers.js.
Downloads · 30 days
13
8% of all-time downloads
All-time downloads
154
Public
Repo size
125 MB
Likes
0
Public
Click a slice to open those files.
.onnx125 MB · 98%
From the Hugging Face model README
AI-generated text detector, converted to ONNX with fixed tokenizer for Transformers.js.
import { pipeline } from '@xenova/transformers';
const classifier = await pipeline('text-classification', 'nicoamoretti/roberta-ai-detector-onnx');
const result = await classifier('Your text here');
// [{ label: 'Real', score: 0.95 }] or [{ label: 'Fake', score: 0.85 }]