Skip to content

Commit 7169127

Browse files
authored
fix: remove duplicate load pdf (#52)
1 parent 6d2205b commit 7169127

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
## 0.2.7-dev0
1+
## 0.2.7
2+
* Fixed duplicated load_pdf call
23

34
## 0.2.6
45

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.7-dev0" # pragma: no cover
1+
__version__ = "0.2.7" # pragma: no cover

unstructured_inference/inference/layout.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ def from_file(cls, filename: str, model: Optional[Detectron2LayoutModel] = None)
7979
# image and returns a dict, or something.
8080
logger.info(f"Reading PDF for file: {filename} ...")
8181
layouts, images = load_pdf(filename, load_images=True)
82-
layouts, images = load_pdf(filename, load_images=True)
8382
pages: List[PageLayout] = list()
8483
for i, layout in enumerate(layouts):
8584
image = images[i]

0 commit comments

Comments
 (0)