Skip to content

Commit d54f50f

Browse files
fix: format
1 parent 5e2d09d commit d54f50f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • unstructured/partition/pdf_image

unstructured/partition/pdf_image/ocr.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,7 @@ def _get_table_tokens_from_extracted_regions(
419419
width, height = table_image_size
420420

421421
valid = [
422-
(idx, text)
423-
for idx, text in enumerate(selected_regions.texts)
424-
if text and str(text).strip()
422+
(idx, text) for idx, text in enumerate(selected_regions.texts) if text and str(text).strip()
425423
]
426424
if not valid:
427425
return []

0 commit comments

Comments
 (0)