pythainlp/wisesight_sentiment
Viewer โข Updated โข 26.7k โข 650 โข 16
How to use mmenuu/healjai_sentiment with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="mmenuu/healjai_sentiment") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("mmenuu/healjai_sentiment")
model = AutoModelForSequenceClassification.from_pretrained("mmenuu/healjai_sentiment", device_map="auto")