Inference API not working
#1
by
bgffgb
- opened
The inference API interfacing does not seem to be correctly set up.
A simple curl request to reproduce the error:
curl -X POST -H "Authorization: Bearer hf_<API KEY>" -H "Content-Type: application/json" -d '{"inputs": "Any text", "parameters": {"return_embeddings": true}}' /static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2Fmicrosoft%2Fxclip-base-patch16-zero-shot
gets
{"error":"unknown error","warnings":["There was an inference error: unknown error: 'NoneType' object has no attribute 'shape'"]}