Commit From AutoNLP d115c71
AutoNLP Admin commited on
How to use m3tafl0ps/autonlp-NLPIsFun-251844 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="m3tafl0ps/autonlp-NLPIsFun-251844") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("m3tafl0ps/autonlp-NLPIsFun-251844")
model = AutoModelForSequenceClassification.from_pretrained("m3tafl0ps/autonlp-NLPIsFun-251844")