Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.14

* Suppressed processing progress bars

## 0.2.13

* Add table processing
Expand Down
2 changes: 1 addition & 1 deletion unstructured_inference/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.13" # pragma: no cover
__version__ = "0.2.14" # pragma: no cover
12 changes: 5 additions & 7 deletions unstructured_inference/inference/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import re
import tempfile
from tqdm import tqdm
from typing import List, Optional, Tuple, Union, BinaryIO
import unicodedata

Expand Down Expand Up @@ -157,13 +156,12 @@ def get_elements_from_layout(self, layout: List[TextRegion]) -> List[LayoutEleme
# NOTE(robinson) - This orders the page from top to bottom. We'll need more
# sophisticated ordering logic for more complicated layouts.
layout.sort(key=lambda element: element.y1)
elements = []
for e in tqdm(layout):
elements.append(
get_element_from_block(
e, self.image, self.layout, self.ocr_strategy, self.extract_tables
)
elements = [
get_element_from_block(
e, self.image, self.layout, self.ocr_strategy, self.extract_tables
)
for e in layout
]
return elements

def _get_image_array(self) -> Union[np.ndarray, None]:
Expand Down