Text Classification
Transformers
PyTorch
Safetensors
Arabic
bert
Trained with AutoTrain
text-embeddings-inference
Instructions to use U4RASD/ArATTC with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use U4RASD/ArATTC with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="U4RASD/ArATTC")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("U4RASD/ArATTC") model = AutoModelForSequenceClassification.from_pretrained("U4RASD/ArATTC", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -43,7 +43,7 @@ $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: applica
|
|
| 43 |
|
| 44 |
Or Python API:
|
| 45 |
|
| 46 |
-
```
|
| 47 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 48 |
|
| 49 |
model = AutoModelForSequenceClassification.from_pretrained("dru-acrps/autotrain-dru-text-classification-v2-85440142814", use_auth_token=True)
|
|
|
|
| 43 |
|
| 44 |
Or Python API:
|
| 45 |
|
| 46 |
+
```python
|
| 47 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 48 |
|
| 49 |
model = AutoModelForSequenceClassification.from_pretrained("dru-acrps/autotrain-dru-text-classification-v2-85440142814", use_auth_token=True)
|