Instructions to use LocalDoc/language_detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LocalDoc/language_detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="LocalDoc/language_detection")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("LocalDoc/language_detection") model = AutoModelForSequenceClassification.from_pretrained("LocalDoc/language_detection") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -41,7 +41,7 @@ First, install the transformers library if you haven't already:
|
|
| 41 |
pip install transformers
|
| 42 |
```
|
| 43 |
|
| 44 |
-
```
|
| 45 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 46 |
import torch
|
| 47 |
|
|
|
|
| 41 |
pip install transformers
|
| 42 |
```
|
| 43 |
|
| 44 |
+
```python
|
| 45 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 46 |
import torch
|
| 47 |
|