API Implementation Error

#2
by infojunkie - opened

Thanks for making the model available for deployment!

I have added my own inference endpoint using your repo, but when I type a prompt in the "Test your endpoint!" text box, I get an error:
API Implementation Error: Invalid output: output must be of type <conversation: <generated_responses:Array; past_user_inputs:Array>>

Any idea what I'm doing wrong?

Thanks!

@infojunkie
if you are testing in the huggingface web application - yes will not work, as the code now returns entire response for convenience (including initial promp)
please check with python code, or with curl command ( there are tabs)
sample curl
curl https://YOUR_ENDPOINT.aws.endpoints.huggingface.cloud -X POST -d '{"inputs": "ما هي عاصمة الامارات؟"}' -H "Authorization: Bearer YOUR_TOKEN" -H "Content-Type: application/json"

Thanks for your reply!

infojunkie changed discussion status to closed

Sign up or log in to comment