Instructions to use Joshi-Aryan/Fine_Tuned_HF_Language_Identification_Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Joshi-Aryan/Fine_Tuned_HF_Language_Identification_Model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Joshi-Aryan/Fine_Tuned_HF_Language_Identification_Model")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Joshi-Aryan/Fine_Tuned_HF_Language_Identification_Model") model = AutoModelForSequenceClassification.from_pretrained("Joshi-Aryan/Fine_Tuned_HF_Language_Identification_Model") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -140,7 +140,7 @@ The model can be effortlessly loaded using the Hugging Face Transformers library
|
|
| 140 |
<pre>
|
| 141 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 142 |
|
| 143 |
-
model_ckpt = "
|
| 144 |
tokenizer = AutoTokenizer.from_pretrained(model_ckpt)
|
| 145 |
model = AutoModelForSequenceClassification.from_pretrained(model_ckpt)
|
| 146 |
</pre>
|
|
|
|
| 140 |
<pre>
|
| 141 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 142 |
|
| 143 |
+
model_ckpt = "Fine_Tuned_HF_Language_Identification_Model "
|
| 144 |
tokenizer = AutoTokenizer.from_pretrained(model_ckpt)
|
| 145 |
model = AutoModelForSequenceClassification.from_pretrained(model_ckpt)
|
| 146 |
</pre>
|