Downloads · 30 days
19
10% of all-time downloads
nicoamoretti/roberta-openai-detector-onnx
roberta-openai-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 format for browser-based inference with Transformers.js.
Downloads · 30 days
19
10% of all-time downloads
All-time downloads
199
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 format for browser-based inference with Transformers.js.
import { pipeline } from '@xenova/transformers';
const classifier = await pipeline('text-classification', 'nicoamoretti/roberta-openai-detector-onnx');
const result = await classifier('Your text here');
console.log(result);
// [{ label: 'Real', score: 0.95 }] - Human written
// [{ label: 'Fake', score: 0.85 }] - AI generated
| Label | Meaning |
|---|---|
Real | Human-written text |
Fake | AI-generated text (GPT-2 era models) |
This model was originally trained to detect GPT-2 generated text. It may have reduced accuracy on text from newer models like GPT-4 or Claude, but still provides useful signal for AI detection.