Dockerization of the marker-api repo to convert a PDF to markdown.
- Github: marker-api
Docker and nvidia container toolkit must be installed.
You can download the image by
docker pull maximofn/marker_api:latestOr you can build the image by
./build_docker_image.shFirst you should run the container by
./run_app.shThis 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.
