Skip to content

Commit f3cae2e

Browse files
committed
refactor(analyzer): reduce sample amount to 5 when inferring similar
items
1 parent 4c534c2 commit f3cae2e

File tree

1 file changed

+1
-1
lines changed
  • npiai/tools/scrapers/page_analyzer

1 file changed

+1
-1
lines changed

npiai/tools/scrapers/page_analyzer/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ async def infer_similar_items_selector(
611611

612612
contentful_elements = await self.playwright.page.evaluate(
613613
"""
614-
(screenshot) => npi.getMostContentfulElements(screenshot, 10)
614+
(screenshot) => npi.getMostContentfulElements(screenshot, 5)
615615
""",
616616
raw_screenshot,
617617
)

0 commit comments

Comments
 (0)