Dockerization of the marker-api repo to convert a PDF to markdown.
314
Dockerization of the marker-api repo to convert a PDF to markdown.

Docker and nvidia container toolkit must be installed.
You can download the image by
docker pull maximofn/marker_api:latest
Or you can build the image by
./build_docker_image.sh
First you should run the container by
./run_app.sh
This up a container with the marker-api running on the port 8000. You must to wait until the message INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) appears.
To convert a PDF to markdown you can use the following command
python pdf2markdown.py ----pdf_file_path <path_to_pdf>
The markdown file will be saved into a folder in the same directory of the PDF file.
Content type
Image
Digest
sha256:8b8057fc6…
Size
8 GB
Last updated
over 2 years ago
docker pull maximofn/marker_api:1.0.1