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