Instructions to use nodd-repo/comment-moderation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use nodd-repo/comment-moderation with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'nodd-repo/comment-moderation');
Download encoder/nodd.json from nodd-repo/comment-moderation: direct link, hf CLI and curl.
- Browser
- Download file 54 Bytes
-
https://huggingface.co/nodd-repo/comment-moderation/resolve/main/encoder/nodd.json
- Command line
-
hf download hf://nodd-repo/comment-moderation/encoder/nodd.json
-
curl -L -o nodd.json https://huggingface.co/nodd-repo/comment-moderation/resolve/main/encoder/nodd.json
54 Bytes
| {"labels": ["ok", "spam", "toxic"], "max_tokens": 256} |