Views
No views yet
| Metric | Real | Fake |
|---|---|---|
| Precision | 0.99 | 0.97 |
| Recall | 0.97 | 0.99 |
| F1-Score | 0.98 | 0.98 |
1from transformers import pipeline
2
3# Load model (replace with your actual username)
4classifier = pipeline(
5 "text-classification",
6 model="debojit01/fake-review-detector"
7)
8
9# Example inference
10result = classifier("This product is absolutely perfect!")
11print(result) # Output: {'label': 'REAL', 'score': 0.99}