Init commit e893de3
Ilya Lubenets commited on
How to use Aniemore/rubert-tiny2-russian-emotion-detection with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Aniemore/rubert-tiny2-russian-emotion-detection") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Aniemore/rubert-tiny2-russian-emotion-detection")
model = AutoModelForSequenceClassification.from_pretrained("Aniemore/rubert-tiny2-russian-emotion-detection", device_map="auto")