Text Classification
Transformers.js
ONNX
Safetensors
Transformers
English
roberta
nlp
Eval Results (legacy)
text-embeddings-inference
Not-For-All-Audiences
Instructions to use AdamCodd/distilroberta-nsfw-prompt-stable-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use AdamCodd/distilroberta-nsfw-prompt-stable-diffusion with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'AdamCodd/distilroberta-nsfw-prompt-stable-diffusion'); - Transformers
How to use AdamCodd/distilroberta-nsfw-prompt-stable-diffusion with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AdamCodd/distilroberta-nsfw-prompt-stable-diffusion")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AdamCodd/distilroberta-nsfw-prompt-stable-diffusion") model = AutoModelForSequenceClassification.from_pretrained("AdamCodd/distilroberta-nsfw-prompt-stable-diffusion", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Not-For-All-Audiences
This repository has been marked as containing sensitive content and may contain potentially harmful and sensitive information.
View content