How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="Yash345/Explicit_Content_detection_for_ChildAbuse")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("Yash345/Explicit_Content_detection_for_ChildAbuse")
model = AutoModelForSequenceClassification.from_pretrained("Yash345/Explicit_Content_detection_for_ChildAbuse", device_map="auto")
Quick Links

Uses

For social good.

Direct Use

model_path = ""

model = BertForSequenceClassification.from_pretrained(model_path)

tokenizer= BertTokenizerFast.from_pretrained(model_path)

nlp= pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)

nlp("text")

Metrics

Accuracy metrics

Downloads last month
3
Safetensors
Model size
0.2B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support