WARNING: This repository has been archived and replaced by the new Indico python client. Please use that repository instead.
A python client library for the Indico IPA Platform.
From PyPI:
pip3 install indicoio
From source:
git clone https://github.com/IndicoDataSolutions/indicoio-py.git
python3 setup.py install
Running in a Docker container:
docker build -t indicoio .
docker run -it indicoio bash
First, download an API token from your user dashboard, and save the downloaded file as indico_api_token.txt
in either your home directory or working directory.
import indicoio
from indicoio import ModelGroup, IndicoApi
# Model Predictions
mg = ModelGroup(id=<model group id>)
mg.load()
mg.predict(["some text"])
# PDF Extraction
api_client = IndicoApi()
api_client.pdf_extraction(["url or file"], **options)