Error while using zero shot classification models via interface API

Error in parameters.candidate_labels: field required"
observing this error even when i am passing parameters.candidate_labels in the json response, copied the exact curl provided in examples and still running into this issue, can someone please take a look, Thanks in advance.

1 Like

Hey, did you get this resolved? I am getting the same error and don’t see an issue in my JSON string input. Thank you!

1 Like

In the body of the request you are putting something like this?

{
“inputs”: “one day I will see the world”,
“parameters”: {
“candidate_labels”: [“travel”, “cooking”, “dancing”]
}
}

1 Like