Instructions to use any0019/text_style_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use any0019/text_style_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="any0019/text_style_classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("any0019/text_style_classifier") model = AutoModelForSequenceClassification.from_pretrained("any0019/text_style_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
7bef7c4 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:ebdceb87872e157d43b8a3a3daf254e1b5897b7e904261eeca1dbeb5101d3bf8
size 438019245
|