pip install fastc
from fastc import SentenceClassifier classifier = SentenceClassifier('braindao/tinyroberta-6l-768d-language-identifier-infused-en-es-gl-ko-zh-fastc') scores = classifier.predict_one('Como te atopas?') language = max(scores, key=scores.get)
Base model