Update README.md 3202b0d verified
Sumedh satish gajbhiye commited on
How to use Sumedhzz/Sentiment-Analyzer with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Sumedhzz/Sentiment-Analyzer") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Sumedhzz/Sentiment-Analyzer")
model = AutoModelForSequenceClassification.from_pretrained("Sumedhzz/Sentiment-Analyzer")