plan291037 commited on
Commit
64762f0
·
verified ·
1 Parent(s): 6cf9e07

Update app/lens_text_core.py

Browse files
Files changed (1) hide show
  1. app/lens_text_core.py +1 -1
app/lens_text_core.py CHANGED
@@ -170,7 +170,7 @@ def _parse_calc_value(calc: str, dim: float) -> float:
170
  return base - off if op == "-" else base + off
171
 
172
  def _extract_boxes(drv, w: int, h: int) -> List[Dict[str, Any]]:
173
- drv.wait_for_element_visible("div.lv6PAb", timeout=10)
174
  nodes = drv.find_elements("xpath", "//div[contains(@class, 'lv6PAb') and @aria-label]")
175
 
176
  out: List[Dict[str,Any]] = []
 
170
  return base - off if op == "-" else base + off
171
 
172
  def _extract_boxes(drv, w: int, h: int) -> List[Dict[str, Any]]:
173
+ drv.wait_for_element_visible("div.lv6PAb", timeout=30)
174
  nodes = drv.find_elements("xpath", "//div[contains(@class, 'lv6PAb') and @aria-label]")
175
 
176
  out: List[Dict[str,Any]] = []