Instructions to use HURIDOCS/pdf-document-layout-analysis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HURIDOCS/pdf-document-layout-analysis with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("HURIDOCS/pdf-document-layout-analysis", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -143,11 +143,11 @@ When the process is done, the output will include a list of SegmentBox elements
|
|
| 143 |
|
| 144 |
If you want to get the visualizations, you can use this command:
|
| 145 |
|
| 146 |
-
curl -X POST -F 'file=@/PATH/TO/PDF/pdf_name.pdf' localhost:5060/visualize -o '
|
| 147 |
|
| 148 |
Or with fast models:
|
| 149 |
|
| 150 |
-
curl -X POST -F 'file=@/PATH/TO/PDF/pdf_name.pdf' -F "fast=true" localhost:5060/visualize -o '
|
| 151 |
|
| 152 |
|
| 153 |
And to stop the server, you can simply use this:
|
|
|
|
| 143 |
|
| 144 |
If you want to get the visualizations, you can use this command:
|
| 145 |
|
| 146 |
+
curl -X POST -F 'file=@/PATH/TO/PDF/pdf_name.pdf' localhost:5060/visualize -o '/PATH/TO/OUTPUT_PDF/pdf_name.pdf'
|
| 147 |
|
| 148 |
Or with fast models:
|
| 149 |
|
| 150 |
+
curl -X POST -F 'file=@/PATH/TO/PDF/pdf_name.pdf' -F "fast=true" localhost:5060/visualize -o '/PATH/TO/OUTPUT_PDF/pdf_name.pdf'
|
| 151 |
|
| 152 |
|
| 153 |
And to stop the server, you can simply use this:
|