Instructions to use Jurabek/language_identifications with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use Jurabek/language_identifications with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy), and from_pretrained_keras was removed in huggingface_hub 1.0. # See https://github.com/keras-team/tf-keras for more details. # !pip install "huggingface_hub<1.0" tf_keras from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("Jurabek/language_identifications") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from Jurabek/language_identifications: direct link, hf CLI and curl.
- Browser
- Download file 843 Bytes
-
https://huggingface.co/Jurabek/language_identifications/resolve/main/README.md
- Command line
-
hf download hf://Jurabek/language_identifications/README.md
-
curl -L -o README.md https://huggingface.co/Jurabek/language_identifications/resolve/main/README.md
843 Bytes
| # Language Detection Model | |
| ## Overview | |
| This model is designed for language detection. It can classify text into three languages: English, Russian, and Uzbek. | |
| ## Usage | |
| - Load the model using the Hugging Face Transformers library. | |
| - Preprocess your text data. | |
| - Make predictions with the model. | |
| ## Model Files | |
| - `config.json`: Model configuration. | |
| - `pytorch_model.bin`: Model weights. | |
| ## Example | |
| Here's how to use the model in Python: | |
| ```python | |
| # Load the model | |
| from transformers import AutoModelForSequenceClassification, AutoTokenizer | |
| model = AutoModelForSequenceClassification.from_pretrained("Jurabek/language_identifications") | |
| tokenizer = AutoTokenizer.from_pretrained("Jurabek/language_identifications") | |
| inputs = tokenizer(audio, return_tensors="pt") | |
| outputs = model(**inputs) | |
| predicted_class = outputs.logits.argmax().item() | |