afirst commit b2855c1
Deepak Tiwari commited on
How to use rayschwartz/new-text-classifications with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="rayschwartz/new-text-classifications") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("rayschwartz/new-text-classifications")
model = AutoModelForSequenceClassification.from_pretrained("rayschwartz/new-text-classifications")