mirror of
https://github.com/allenai/olmocr.git
synced 2025-10-11 00:02:41 +00:00
Update README.md
This commit is contained in:
parent
6583fb641a
commit
0dcdbcc61a
@ -58,13 +58,14 @@ to make sure you have access to https://huggingface.co/allenai/olmOCR-7B-0225-pr
|
||||
For quick testing, try the [web demo](https://olmocr.allen.ai/). To run locally, a GPU is required, as inference is powered by [sglang](https://github.com/sgl-project/sglang) under the hood.
|
||||
Convert a Single PDF:
|
||||
```bash
|
||||
python -m olmocr.pipeline ./localworkspace --pdfs tests/gnarly_pdfs/horribleocr.pdf # will convert one PDF into a directory called `localworkspace`
|
||||
python -m olmocr.pipeline ./localworkspace --pdfs tests/gnarly_pdfs/horribleocr.pdf
|
||||
```
|
||||
|
||||
Convert Multiple PDFs:
|
||||
```bash
|
||||
python -m olmocr.pipeline ./localworkspace --pdfs tests/gnarly_pdfs/*.pdf
|
||||
```
|
||||
Results will be stored as JSON in `./localworkspace`.
|
||||
|
||||
#### Viewing Results
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user