Edit model card

Some example code to load our model locally and generate a prediction:

from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Dede1989600/sexism_amCAD")
model = AutoModelForSeq2SeqLM.from_pretrained("Dede1989600/sexism_amCAD")

inputs = tokenizer("This is a test that should be labelled as no hate", return_tensors="pt")
outputs = model.generate(**inputs)
tokenizer.decode(outputs[0], skip_special_tokens=True)

The model returns either 1 for sexist or 0 for non-sexist

Downloads last month
0
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.