From 71691273989ffd9818d91b8599ddeb5045bf3764 Mon Sep 17 00:00:00 2001 From: qued <64741807+qued@users.noreply.github.com> Date: Thu, 9 Feb 2023 21:19:54 -0600 Subject: [PATCH] fix: remove duplicate load pdf (#52) --- CHANGELOG.md | 3 ++- unstructured_inference/__version__.py | 2 +- unstructured_inference/inference/layout.py | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46b75431..bdab48b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ -## 0.2.7-dev0 +## 0.2.7 +* Fixed duplicated load_pdf call ## 0.2.6 diff --git a/unstructured_inference/__version__.py b/unstructured_inference/__version__.py index 430c3399..b5ed96f2 100644 --- a/unstructured_inference/__version__.py +++ b/unstructured_inference/__version__.py @@ -1 +1 @@ -__version__ = "0.2.7-dev0" # pragma: no cover +__version__ = "0.2.7" # pragma: no cover diff --git a/unstructured_inference/inference/layout.py b/unstructured_inference/inference/layout.py index abfc6ed8..71318468 100644 --- a/unstructured_inference/inference/layout.py +++ b/unstructured_inference/inference/layout.py @@ -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]