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

Markdown Output #55

Open
rferrazd opened this issue Sep 18, 2024 · 5 comments
Open

Markdown Output #55

rferrazd opened this issue Sep 18, 2024 · 5 comments

Comments

@rferrazd
Copy link

Hello,

In your paper it seemed that the model was able to extract the text and output it in Markdown format (with subtitles,headings, bold, etc). I am using your model from hugging face and I am not sure how to get the output in Markdown format. I have tried the following:
res = model.chat(tokenizer, images[0], ocr_type='format with Markdown')
What is the appropriate syntax to obtain the output in Markdown format?
And, where can I read more about 'ocr_type', 'ocr_box', 'ocr_color', and 'render' - it is not present on the github repo.

Thank you for the help!

@Ucas-HaoranWei
Copy link
Owner

Hi, you can see the app.py on huggingface to see the details of how to output formatted results.

@rferrazd
Copy link
Author

Hello, thanks for helping me with this. I believe that there is no app.py on huggingface
Screenshot 2024-09-19 at 8 13 59 AM

@No360201
Copy link

Hello, thanks for helping me with this. I believe that there is no app.py on huggingface Screenshot 2024-09-19 at 8 13 59 AM

hhhh

@Ucas-HaoranWei
Copy link
Owner

In the demo space.

@rferrazd
Copy link
Author

Hello @Ucas-HaoranWei, I am really sorry, but I am not finding it in the demo space. I see no explanation of how to get the output in Markdown format. I have only been able to get the output in Latex format.
Could you kindly provide a screenshot of where the explanation of the syntax for getting the output in Markdown format is?
I really appreciate the help, and congratulations on this amazing work!

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

3 participants