Update README.md
Browse files
README.md
CHANGED
|
@@ -21,7 +21,8 @@ Finetuned on: [`MidhunKanadan/CritiQ_BERT`](https://huggingface.co/datasets/Midh
|
|
| 21 |
```python
|
| 22 |
from transformers import pipeline
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
| 21 |
```python
|
| 22 |
from transformers import pipeline
|
| 23 |
|
| 24 |
+
classifier = pipeline("text-classification", model="MidhunKanadan/ModernBERT-CritiQ")
|
| 25 |
|
| 26 |
+
result = classifier("Are there more effective ways to improve fairness without raising the minimum wage?")
|
| 27 |
+
print(result)
|
| 28 |
+
# → [{'label': 'Useful', 'score': 0.9982688426971436}]
|