diff --git a/openfoodfacts/api.py b/openfoodfacts/api.py index b7d538c..766d20d 100644 --- a/openfoodfacts/api.py +++ b/openfoodfacts/api.py @@ -78,7 +78,7 @@ def predict_lang(self, text: str, k: int = 10, threshold: float = 0.01) -> JSONT return http_session.post( url=f"{self.base_url}/api/v1/predict/lang", data={"text": text, "k": k, "threshold": threshold}, - ) + ).json() class FacetResource: