File size: 275 Bytes
b99687f |
1 2 3 4 5 6 7 8 9 10 11 |
import floret # Assuming Floret is already installed
class FloretLangIdentifier:
def __init__(self, model_path):
self.model = floret.load_model(model_path)
def predict(self, text):
predictions = self.model.predict(text)
return predictions
|