Spaces:
Running
Running
Update app/lens_text_core.py
Browse files- 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=
|
| 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]] = []
|