Downloads · 30 days
3
14% of all-time downloads
Jurabek/language_identifications
language_identifications is a machine learning model from Jurabek. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for tf-keras.
This model is designed for language detection. It can classify text into three languages: English, Russian, and Uzbek.
Downloads · 30 days
3
14% of all-time downloads
All-time downloads
21
Public
Repo size
110 KB
Likes
0
Public
Click a slice to open those files.
.pb110 KB · 78%
From the Hugging Face model README
This model is designed for language detection. It can classify text into three languages: English, Russian, and Uzbek.
config.json: Model configuration.pytorch_model.bin: Model weights.Here's how to use the model in 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()