Skip to content

Commit

Permalink
fix: remove duplicate load pdf (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
qued authored Feb 10, 2023
1 parent 6d2205b commit 7169127
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## 0.2.7-dev0
## 0.2.7
* Fixed duplicated load_pdf call

## 0.2.6

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.7-dev0" # pragma: no cover
__version__ = "0.2.7" # pragma: no cover
1 change: 0 additions & 1 deletion unstructured_inference/inference/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def from_file(cls, filename: str, model: Optional[Detectron2LayoutModel] = None)
# image and returns a dict, or something.
logger.info(f"Reading PDF for file: {filename} ...")
layouts, images = load_pdf(filename, load_images=True)
layouts, images = load_pdf(filename, load_images=True)
pages: List[PageLayout] = list()
for i, layout in enumerate(layouts):
image = images[i]
Expand Down

0 comments on commit 7169127

Please sign in to comment.