Downloads · 30 days
35
12% of all-time downloads
onnx-community/roberta_toxicity_classifier-ONNX
roberta_toxicity_classifier-ONNX is a text classification model from onnx-community. Use it when you need a label for a piece of text. It is set up for transformers.js.
This is an ONNX version of s-nlp/robertatoxicityclassifier. It was automatically converted and uploaded using this space.
Downloads · 30 days
35
12% of all-time downloads
All-time downloads
293
Public
Repo size
1.5 GB
Likes
1
Public
Click a slice to open those files.
.onnx1.7 GB · 100%
From the Hugging Face model README
This is an ONNX version of s-nlp/roberta_toxicity_classifier. It was automatically converted and uploaded using this space.
If you haven't already, you can install the Transformers.js JavaScript library from NPM using:
npm i @huggingface/transformers
Example: Classify text toxicity.
import { pipeline } from '@huggingface/transformers';
const classifier = await pipeline('text-classification', 'onnx-community/roberta_toxicity_classifier-ONNX');
const output = await classifier('I love transformers!');