Skip to content

Instantly share code, notes, and snippets.

View amaljoseph's full-sized avatar
🧠

Amal Joseph amaljoseph

🧠
View GitHub Profile
import argparse
import requests
import json
import os
# Template URLs for checking the job status and downloading the TEI-P5 XML
API_STATUS_URL_TEMPLATE = "https://skeleton.iiit.ac.in/api/v1/polyocr/status/{job_id}"
API_XML_URL_TEMPLATE = "https://skeleton.iiit.ac.in/api/v1/polyocr/status/tei/{job_id}"
# Your API token for authentication (replace with your actual token)