Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

公式识别为False时报错。 #129

Closed
wertyac opened this issue Jun 27, 2024 · 2 comments
Closed

公式识别为False时报错。 #129

wertyac opened this issue Jun 27, 2024 · 2 comments

Comments

@wertyac
Copy link

wertyac commented Jun 27, 2024

from pix2text import Pix2Text
uer_temp_dir = get_user_temp_dir(user_id=user_id,doc_id=doc_id)
p2t = Pix2Text.from_config(device="cpu",enable_formula=False)
doc = p2t.recognize_pdf(file_path)
doc.to_markdown(uer_temp_dir)

报错:
latex_ocr model MUST NOT be None

@breezedeus
Copy link
Owner

v1.1.1.2 已修复,感谢

@wertyac
Copy link
Author

wertyac commented Jul 26, 2024

谢谢楼主

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants