diff --git a/robotoff/insights/importer.py b/robotoff/insights/importer.py index a96fa33452..b157bfee22 100644 --- a/robotoff/insights/importer.py +++ b/robotoff/insights/importer.py @@ -1396,7 +1396,7 @@ def generate_candidates_for_image( }, predictor_version=cls.PREDICTOR_VERSION, value_tag=lang, - automatic_processing=False, + automatic_processing=True, barcode=nutrient_mention_prediction.barcode, server_type=nutrient_mention_prediction.server_type, source_image=nutrient_mention_prediction.source_image, diff --git a/tests/unit/insights/test_importer.py b/tests/unit/insights/test_importer.py index 1c8c6e5d15..80a20c9b60 100644 --- a/tests/unit/insights/test_importer.py +++ b/tests/unit/insights/test_importer.py @@ -1447,7 +1447,7 @@ def test_generate_candidates_for_image(self): assert insight.barcode == DEFAULT_BARCODE assert insight.server_type == DEFAULT_SERVER_TYPE.name assert insight.value_tag == "fr" - assert insight.automatic_processing is False + assert insight.automatic_processing is True assert insight.source_image == DEFAULT_SOURCE_IMAGE assert insight.data.get("from_prediction_ids") == {"nutrient_mention": 2} assert insight.data.get("rotation") == 90