Views
No views yet
distilbert-base-cased designed to classify book reviews into specific genres. It was developed as part of an MLOps pipeline demonstrating end-to-end model fine-tuning, evaluation, and deployment using Hugging Face and Weights & Biases.Trainer API with the following configuration:pipeline:1from transformers import pipeline
2
3# Load the pipeline
4classifier = pipeline("text-classification", model="zeeshan-hf/distilbert-goodreads-genres")
5
6# Test it with a review
7review = "The magic system in this book was incredible, and the dragons felt so real!"
8prediction = classifier(review)
9
10print(prediction)
11# Expected output: [{'label': 'fantasy_paranormal', 'score': 0.85...}]