Predict API Docs for:

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

The URL endpoint is:

Input(s): [ Textbox ]

Output(s): [ Textbox ]

Payload:

  {

    "data": [ str ]

  }

Response:

  {

    "data": [ Union[str, number] ],

    "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":

["The tower is 324 metres (1,063 ft) tall,"

]})

r.json()

curl -X POST 

 -H 'Content-Type: application/json' -d '{"data": ["The tower is 324 metres (1,063 ft) tall,"

]}'

fetch('', { method: "POST", body: JSON.stringify({"data":[ "The tower is 324 metres (1,063 ft) tall,"

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