Text Classification
Transformers
PyTorch
English
deberta-v2
Trained with AutoTrain
text-embeddings-inference
Instructions to use whispAI/ClaimBuster-DeBERTaV2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use whispAI/ClaimBuster-DeBERTaV2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="whispAI/ClaimBuster-DeBERTaV2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("whispAI/ClaimBuster-DeBERTaV2") model = AutoModelForSequenceClassification.from_pretrained("whispAI/ClaimBuster-DeBERTaV2") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -38,7 +38,7 @@ co2_eq_emissions:
|
|
| 38 |
You can use cURL to access this model:
|
| 39 |
|
| 40 |
```
|
| 41 |
-
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/lucafrost/
|
| 42 |
```
|
| 43 |
|
| 44 |
Or Python API:
|
|
@@ -46,9 +46,9 @@ Or Python API:
|
|
| 46 |
```
|
| 47 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 48 |
|
| 49 |
-
model = AutoModelForSequenceClassification.from_pretrained("lucafrost/
|
| 50 |
|
| 51 |
-
tokenizer = AutoTokenizer.from_pretrained("lucafrost/
|
| 52 |
|
| 53 |
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
| 54 |
|
|
|
|
| 38 |
You can use cURL to access this model:
|
| 39 |
|
| 40 |
```
|
| 41 |
+
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/lucafrost/ClaimBuster-DeBERTaV2
|
| 42 |
```
|
| 43 |
|
| 44 |
Or Python API:
|
|
|
|
| 46 |
```
|
| 47 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 48 |
|
| 49 |
+
model = AutoModelForSequenceClassification.from_pretrained("lucafrost/ClaimBuster-DeBERTaV2", use_auth_token=True)
|
| 50 |
|
| 51 |
+
tokenizer = AutoTokenizer.from_pretrained("lucafrost/ClaimBuster-DeBERTaV2", use_auth_token=True)
|
| 52 |
|
| 53 |
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
| 54 |
|