ucirvine/sms_spam
Viewer • Updated • 5.57k • 5.31k • 55
How to use Roman190928/SpamClassifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Roman190928/SpamClassifier") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Roman190928/SpamClassifier", dtype="auto")# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Roman190928/SpamClassifier", dtype="auto")
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Roman190928/SpamClassifier")