Predict API Docs for:

This interface takes in 2 input(s) and returns 1 output(s).

The URL endpoint is:

Input(s): [ Audio , Audio ]

Output(s): [ HTML ]

Payload:

  {

    "data": [ Dict[name: str, data: str] , Dict[name: str, data: str] ]

  }

Response:

  {

    "data": [ str ],

    "durations": [ float ], # the time taken for the prediction to complete

    "avg_durations": [ float ] # the average time taken for all predictions so far (used to estimate the runtime)

  }

Try it (live demo):

import requests


r = requests.post(url='

',

json={"data":

[{"data": null, "is_example": true, "name": "samples/cate_blanch.mp3"}

,

{"data": null, "is_example": true, "name": "samples/cate_blanch_2.mp3"}

]})

r.json()

curl -X POST 

 -H 'Content-Type: application/json' -d '{"data": [{"data": null, "is_example": true, "name": "samples/cate_blanch.mp3"}

,

{"data": null, "is_example": true, "name": "samples/cate_blanch_2.mp3"}

]}'

fetch('', { method: "POST", body: JSON.stringify({"data":[ {"data": null, "is_example": true, "name": "samples/cate_blanch.mp3"}, {"data": null, "is_example": true, "name": "samples/cate_blanch_2.mp3"}

]}), headers: { "Content-Type": "application/json" } }).then(function(response) { return response.json(); }).then(function(json_response){ console.log(json_response) })