Skip to content

Conversation

@ilyapashuk
Copy link

this script uses the "latex_styled" response field to extract the output. but for some images the "latex_styled" field is not return, only the "text" is returned for such images it fails with the "could not write to destination path" error (with the incorrect error message).

this commit fixes this by using the "text" field if the "latex_styled" field is not available.

example of the failing image is attached (check with ocr api mode, not with snip mode)
for this image, only the text field is return, latex_styled is not.

cont2ex

this script uses the "latex_styled" response field to extract the output.
but for some images the "latex_styled" field is not return, only the "text" is returned
for such images it fails with the "could not write to destination path" error  (with the incorrect error message).

this commit fixes this by using the "text" field if the "latex_styled" field is not available.
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

Successfully merging this pull request may close these issues.

1 participant