Invalid input data for ImageToTextOutput
: Expected a single instance, but got a list.
#2273
Labels
bug
Something isn't working
Describe the bug
When inferencing with
image_to_text()
method, it reports a value error:ValueError: Invalid input data for <class 'huggingface_hub.inference._generated.types.image_to_text.ImageToTextOutput'>. Expected a single instance, but got a list.
It looks like the post response need to be parsed as a list:
I verified the above code could work as expected.
Reproduction
No response
Logs
No response
System info
The text was updated successfully, but these errors were encountered: