File size: 182 Bytes
08b9568
 
 
 
 
 
 
1
2
3
4
5
6
7
8
#!/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