Instructions to use ujjawalsah/bert-toxicity-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ujjawalsah/bert-toxicity-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ujjawalsah/bert-toxicity-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ujjawalsah/bert-toxicity-classifier") model = AutoModelForSequenceClassification.from_pretrained("ujjawalsah/bert-toxicity-classifier") - Notebooks
- Google Colab
- Kaggle
Please add license in model card
#1
by ratnapalshende - opened
If not allowed to use openly then mention it as well in the model card
Hi @ratnapalshende ,
Thanks for pointing that out 🙏. I’ve updated the model card and added a License section.
This model is licensed under the MIT License, so it can be used openly in accordance with the license terms.
Thanks @ujjawalsah
ratnapalshende changed discussion status to closed