api-inference-community
api-inference-community copied to clipboard
Error message not explicit
When posting an empty json to a text-to-image pipeline I get the error:
{
"error": [
"str type expected: `__root__` in `parameters`"
]
}
Which somehow means that I need to post a json like this:
{
"inputs": "monkey eating banana"
}
I think we could make the errors a little more explicit
Would you be willing to open a PR for that ? :D