<Response [422]>

#18
by skrishna - opened

I get this 422 response error when I use hugging face inference engine for the model using the code below.

API_URL = "https://api-inference.huggingface.co/models/google/flan-t5-xxl"
headers = {"Authorization": f"Bearer {API_TOKEN}"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()

output = query({
"inputs": "The answer to the universe is",
})

Sign up or log in to comment