Skip to content

Commit

Permalink
chore: add allergen taxonomy
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Nov 10, 2023
1 parent d9edc6f commit 6704189
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion robotoff/prediction/ocr/grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def generate_terminal_symbols_text(
"""
ignore_ids = ignore_ids or set()
texts = []
taxonomy = get_taxonomy(taxonomy_type.name, offline=True)
taxonomy = get_taxonomy(taxonomy_type.name, offline=False)
seen_set: dict[str, str] = {}

node_id_names = extract_taxonomy_names(
Expand Down
2 changes: 2 additions & 0 deletions robotoff/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ def event_api() -> str:
+ "/data/taxonomies/packaging_materials.full.json",
"packaging_recycling": BaseURLProvider.static(ServerType.off)
+ "/data/taxonomies/packaging_recycling.full.json",
"allergen": BaseURLProvider.static(ServerType.off)
+ "/data/taxonomies/allergen.full.json",
}

_off_password = os.environ.get("OFF_PASSWORD", "")
Expand Down

0 comments on commit 6704189

Please sign in to comment.