Upload 8 files 24adfd3
NLP Chula Lab commited on
How to use nlp-chula/traffy-problem-predict with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="nlp-chula/traffy-problem-predict") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("nlp-chula/traffy-problem-predict")
model = AutoModelForSequenceClassification.from_pretrained("nlp-chula/traffy-problem-predict")