Instructions to use buystufflive/safety-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use buystufflive/safety-classifier with timm:
import timm model = timm.create_model("hf-hub:buystufflive/safety-classifier", pretrained=True) - Notebooks
- Google Colab
- Kaggle
Download inference/labels.json from buystufflive/safety-classifier: direct link, hf CLI and curl.
- Browser
- Download file 161 Bytes
-
https://huggingface.co/buystufflive/safety-classifier/resolve/main/inference/labels.json
- Command line
-
hf download hf://buystufflive/safety-classifier/inference/labels.json
-
curl -L -o labels.json https://huggingface.co/buystufflive/safety-classifier/resolve/main/inference/labels.json
161 Bytes
| { | |
| "safety": { | |
| "label_to_id": { | |
| "hot": 0, | |
| "nsfw": 1, | |
| "safe": 2 | |
| }, | |
| "labels": [ | |
| "hot", | |
| "nsfw", | |
| "safe" | |
| ] | |
| } | |
| } | |