Skip to content

Commit

Permalink
fix: make predict_lang compatible with signature
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Apr 18, 2024
1 parent dd51e71 commit 757cab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfoodfacts/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 757cab9

Please sign in to comment.