Duplicated from cis-lmu/glotlid
How to use lopatnov/glotlid with fastText:
from huggingface_hub import hf_hub_download import fasttext model = fasttext.load_model(hf_hub_download("lopatnov/glotlid", "model.bin"))