-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid input data for ImageToTextOutput
: Expected a single instance, but got a list.
#2273
Labels
bug
Something isn't working
Comments
same here . for some code i am running i am also getting this error lets say for example running this code
i get this error
|
Thanks for reporting @whiskyboy @tejas36026 and sorry for the inconvenience! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: