Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ali6parmak committed Oct 24, 2024
2 parents 0795230 + c6813b0 commit 72c9112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extraction_formats/extract_formula_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ def extract_formula_format(pdf_images: PdfImages, predicted_segments: list[PdfSe
formula_image = page_image.crop((left, top, left + width, top + height))
try:
extracted_formula = get_latex_format(model, formula_image)
except RuntimeError:
except (ValueError, RuntimeError):
continue
predicted_segments[index].text_content = extracted_formula

0 comments on commit 72c9112

Please sign in to comment.