Skip to content

Commit

Permalink
feat: apply automatically nutrition images insights
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Aug 30, 2023
1 parent 0ab186b commit 6d79855
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion robotoff/insights/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/insights/test_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d79855

Please sign in to comment.