MidhunKanadan commited on
Commit
8be4b48
·
verified ·
1 Parent(s): 283403c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -3
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
- clf = pipeline("text-classification", model="MidhunKanadan/ModernBERT-CritiQ")
25
 
26
- clf("Are there alternative actions to achieve economic fairness without raising the minimum wage?")
27
- # → [{'label': 'Useful', 'score': 0.92}]
 
 
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}]