Sign inSign up

maximofn/marker_api

By maximofn

Updated over 2 years ago

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

Image
Machine learning & AI
1

314

maximofn/marker_api repository overview

Marker-api docker

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

PDF 2 markdown

Requisites

Docker and nvidia container toolkit must be installed.

Docker image

Download the image from the Docker Hub

You can download the image by

docker pull maximofn/marker_api:latest
Build the image

Or you can build the image by

./build_docker_image.sh

Usage

Run the container

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.

Convert a PDF to markdown

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.

Tag summary

Content type

Image

Digest

sha256:8b8057fc6

Size

8 GB

Last updated

over 2 years ago

docker pull maximofn/marker_api:1.0.1