To use Doctr Library as an api with custom function using FastAPI. This is a POC to implement doctr with FastAPI.
Pre-requisite can be refereced from https://github.com/mindee/doctr.
Dockerized the app to use doctr as api.
Follow below steps to replicate the setup.
-
Clone the environment,
-
Run the below command to build image,
docker build . -t doc_api
-
Now run the below command to run the docker and expose desired port,
docker run -p 8000:80 doc_api