Skip to content

Commit

Permalink
fix: enable ignoreMLClassifyErrors for recipeClipper
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoy committed Jan 4, 2024
1 parent cb64b92 commit 9c496c7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@elastic/elasticsearch": "~8.10.0",
"@google-cloud/vision": "^4.0.2",
"@ionic/angular": "^7.5.7",
"@julianpoy/recipe-clipper": "^3.0.1",
"@julianpoy/recipe-clipper": "^3.1.0",
"@ngx-loading-bar/core": "^6.0.2",
"@ngx-translate/core": "^14.0.0",
"@ngx-translate/http-loader": "^7.0.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/backend/src/services/clip.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const clipRecipeUrlWithPuppeteer = async (clipUrl) => {
// eslint-disable-next-line no-undef
return window.RecipeClipper.clipRecipe({
mlClassifyEndpoint: interceptUrl,
ignoreMLClassifyErrors: true,
});
}, INTERCEPT_PLACEHOLDER_URL);

Expand Down Expand Up @@ -154,6 +155,7 @@ const clipRecipeHtmlWithJSDOM = async (document) => {
return await RecipeClipper.clipRecipe({
window,
mlClassifyEndpoint: process.env.INGREDIENT_INSTRUCTION_CLASSIFIER_URL,
ignoreMLClassifyErrors: true,
});
};

Expand Down

0 comments on commit 9c496c7

Please sign in to comment.