Spaces:
Sleeping
Sleeping
Download api/config.py from mothy-08/content-moderator-api: direct link, hf CLI and curl.
- Browser
- Download file 227 Bytes
-
https://huggingface.co/spaces/mothy-08/content-moderator-api/resolve/main/api/config.py
- Command line
-
hf download hf://spaces/mothy-08/content-moderator-api/api/config.py
-
curl -L -o config.py https://huggingface.co/spaces/mothy-08/content-moderator-api/resolve/main/api/config.py
227 Bytes
| from functools import lru_cache | |
| from transformers import pipeline | |
| def get_classifier(): | |
| return pipeline( | |
| "text-classification", "mothy-08/deberta-v3-xsmall-finetuned-content-moderator" | |
| ) | |