update model card README.md 7af380b
Pablo Antonio Moreno Casares commited on
How to use PabloAMC/sentiment-model-100-samples with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="PabloAMC/sentiment-model-100-samples") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("PabloAMC/sentiment-model-100-samples")
model = AutoModelForSequenceClassification.from_pretrained("PabloAMC/sentiment-model-100-samples", device_map="auto")