Downloads · 30 days
8
19% of all-time downloads
Dede1989600/FLAN-T5_hatespeech_mCAD
FLAN-T5_hatespeech_mCAD is a text generation model from Dede1989600. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Some example code to load our model locally and generate a prediction:
Downloads · 30 days
8
19% of all-time downloads
All-time downloads
43
Public
Repo size
2 GB
Likes
0
Public
Click a slice to open those files.
.bin990 MB · 100%
From the Hugging Face model README
Some example code to load our model locally and generate a prediction:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Dede1989600/hatespeech_mCAD")
model = AutoModelForSeq2SeqLM.from_pretrained("Dede1989600/hatespeech_mCAD")
inputs = tokenizer("This is a test that should be labeled as no hate", return_tensors="pt")
outputs = model.generate(**inputs)
tokenizer.decode(outputs[0], skip_special_tokens=True)
The model returns either 1 for hatespeech or 0 for no hatespeech