from innocuous_sdk.endpoint import Endpoint
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": [
"https://file.innocuous.ai/3.jpg",
"https://file.innocuous.ai/7.jpg",
"https://file.innocuous.ai/8.jpg"
]}
result = endpoint.predict_json(endpoint_id, data)
files = [
'/local/path/file/1.jpg',
'/local/path/file/2.jpg',
'/local/path/file/3.jpg',
'/local/path/file/4.jpg'
]
result = endpoint.predict_file(endpoint_id, files)
result = endpoint.upload_dataset(endpoint_id, '/local/path/file/test.zip')