How to use from the
Use from the
Transformers.js library
# Gated model: Login with a HF token with gated access permission
hf auth login
// npm i @huggingface/transformers
import { pipeline } from '@huggingface/transformers';

// Allocate pipeline
const pipe = await pipeline('image-classification', 'AdamCodd/vit-nsfw-stable-diffusion');

Not-For-All-Audiences

This repository has been marked as containing sensitive content and may contain potentially harmful and sensitive information.

View model card