Skip to content

maximofn/marker_api_docker

Repository files navigation

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.

About

marker-api docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors