We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e2d09d commit d54f50fCopy full SHA for d54f50f
1 file changed
unstructured/partition/pdf_image/ocr.py
@@ -419,9 +419,7 @@ def _get_table_tokens_from_extracted_regions(
419
width, height = table_image_size
420
421
valid = [
422
- (idx, text)
423
- for idx, text in enumerate(selected_regions.texts)
424
- if text and str(text).strip()
+ (idx, text) for idx, text in enumerate(selected_regions.texts) if text and str(text).strip()
425
]
426
if not valid:
427
return []
0 commit comments