Update README.md
Browse files
README.md
CHANGED
|
@@ -33,8 +33,15 @@ You can select it with the CLI options shown below:
|
|
| 33 |
```sh
|
| 34 |
# Convert to HTML and Markdown:
|
| 35 |
docling --to html --to md --pipeline vlm --vlm-model granite_docling "https://arxiv.org/pdf/2501.17887" # accepts files, urls or directories
|
|
|
|
|
|
|
|
|
|
| 36 |
```
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
## How to use this model with bare mlx-vlm
|
| 39 |
|
| 40 |
You can also run plain mlx-vlm to generate predictions.
|
|
|
|
| 33 |
```sh
|
| 34 |
# Convert to HTML and Markdown:
|
| 35 |
docling --to html --to md --pipeline vlm --vlm-model granite_docling "https://arxiv.org/pdf/2501.17887" # accepts files, urls or directories
|
| 36 |
+
|
| 37 |
+
# Convert to HTML including layout visualization:
|
| 38 |
+
docling --to html_split_page --show-layout --pipeline vlm --vlm-model granite_docling "https://arxiv.org/pdf/2501.17887"
|
| 39 |
```
|
| 40 |
|
| 41 |
+
<p align="center">
|
| 42 |
+
<img src="https://huggingface.co/ibm-granite/granite-docling-258M/resolve/main/assets/granite_docling_split_page.png" alt="GraniteDocling result in split page view" width="900"/>
|
| 43 |
+
</p>
|
| 44 |
+
|
| 45 |
## How to use this model with bare mlx-vlm
|
| 46 |
|
| 47 |
You can also run plain mlx-vlm to generate predictions.
|