FastAPI for Indic Parser
- Clone the Respository
cd indic-parser-flaskapi
- Install all the packages
pip install -r packages.txt
- Run app.py
uvicorn app:app --reload
- Send POST request
curl -X 'POST' \
'http://127.0.0.1:8000/ocr' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'file=@GK2_page-0280.jpg;type=image/jpeg' \
-F 'inference=no' \
-F 'lang=san_iitb' \
-F 'model=' \
-F 'confidence_threshold='
curl -X 'POST' \
'http://127.0.0.1:8000/ocr' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'file=@GK2_page-0284.jpg;type=image/jpeg' \
-F 'inference=yes' \
-F 'lang=san_iitb' \
-F 'model=Sanskrit_PubLayNet_faster_rcnn' \
-F 'confidence_threshold=0.5'