Innocuous Book
Endpoint SDK
Use SDK to upload your dataset and predict

from innocuous_sdk.endpoint import Endpoint

Use user_name and user_token to login, and start to use the following methods
endpoint = Endpoint('<user_name>', '<user_token>')

List all running endpoint
endpoint_list = endpoint.list_endpoint()

endpoint_id = endpoint.get_endpoint_id('<my-endpoint-nema>')

result = endpoint.get_endpoint(endpoint_id)

data = { "images": [
result = endpoint.predict_json(endpoint_id, data)

files = [
result = endpoint.predict_file(endpoint_id, files)

result = endpoint.upload_dataset(endpoint_id, '/local/path/file/')
Copy link
On this page
Let's start
Import package
List all running endpoint
Get endpoint id by name
Get endpoint information
Predict with json body
Predict with local files
Upload dataset