pdf-ocr / scripts /smoke_test.sh
Ratnesh-dev's picture
initial OCR commit
08b9568
Raw
History Blame Contribute Delete
182 Bytes
#!/usr/bin/env bash
set -euo pipefail
API_URL="${1:-http://localhost:7860/ocr}"
PDF_PATH="${2:-tilted_test.pdf}"
curl -sS -F "file=@${PDF_PATH}" "${API_URL}" | python -m json.tool