How to use nahiar/language-detection with fastText:
from huggingface_hub import hf_hub_download import fasttext model = fasttext.load_model(hf_hub_download("nahiar/language-detection", "model.bin"))