FOXEYE worker: generates a DLF from any file
534

TODO: re.sub(' +', ' ', 'The quick brown fox') To remove double space for ocr
Runs on EC2-docker AWS instance
}
"docid": O,
"key": "media/10038_02_24.03.2005.pdf",
"bucket": "stackafront-static",
"conv_key": "string",
"conv_bucket": "string",
"version": "caseip",
"translate": true
}
report, dlf, conv_pdf_path = foxeye(req["docid"], "./file_to_process", translate=req["translate"], version=req["version"],debug=True)
docker build -t stackateam/foxeye_worker:0.5 . --rm
docker run --env-file env.list stackateam/foxeye_worker:<tag_version>
The file "env.list" should contain the following variables:
AWS_SECRET_ACCESS_KEY=
AWS_ACCESS_KEY_ID=
RABBIT_QUEUE=
RABBIT_USER=
RABBIT_PASSWORD=
AMPQ_URL=
HEROKU_API_TOKEN=
HEROKU_API=

Content type
Image
Digest
Size
831.5 MB
Last updated
over 6 years ago
docker pull stackateam/foxeye_worker