add model 3e6d713
Moreno La Quatra commited on
How to use morenolq/spotify-podcast-advertising-classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="morenolq/spotify-podcast-advertising-classification") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("morenolq/spotify-podcast-advertising-classification")
model = AutoModelForSequenceClassification.from_pretrained("morenolq/spotify-podcast-advertising-classification", device_map="auto")