Skip to content

Commit

Permalink
chore(ocr): move apply_ocr outside of id condition
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Sep 7, 2024
1 parent 06fc12c commit 645799c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def parse_bank_statement(
if cropbox := bank.pdf_config.page_bbox:
for page in parser.document:
page.set_cropbox(cropbox)
parser.document = parser.apply_ocr(document)

parser.document = parser.apply_ocr(document)

pipeline = Pipeline(parser, passwords=[SecretStr(password)])

Expand Down

0 comments on commit 645799c

Please sign in to comment.