Views
No views yet
1from transformers import pipeline
2clf = pipeline("text-classification", model="omaressamrme/tuning")
3print(clf("I absolutely loved this movie!"))curl -H "Authorization: Bearer $HF_TOKEN" -H "Content-Type: application/json" -d '{"inputs": "I absolutely loved this movie!"}' https://api-inference.huggingface.co/models/omaressamrme/tuning1texts = ["Great film!", "Worst plot ever."]
2preds = clf(texts)