u
This commit is contained in:
6
main.py
6
main.py
@@ -29,7 +29,11 @@ def main():
|
||||
with open(pdf_path, "rb") as pdf_file:
|
||||
pdf_content = pdf_file.read()
|
||||
md, images = convert_pdf_to_markdown(pdf_content)
|
||||
md = refine_content(md, images, pdf_content)
|
||||
try:
|
||||
md = refine_content(md, images, pdf_content)
|
||||
except BaseException:
|
||||
continue
|
||||
|
||||
save_md_images(current_output_dir, md, images)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user