Closed whiskyboy closed 1 month ago
same here . for some code i am running i am also getting this error lets say for example running this code
import gradio as gr
gr.load("models/naver-clova-ix/donut-base").launch(share=True)
i get this error
ValueError: Invalid input data for <class 'huggingface_hub.inference._generated.types.image_to_text.ImageToTextOutput'>. Expected a single instance, but got a list.
Thanks for reporting @whiskyboy @tejas36026 and sorry for the inconvenience! I have opened a PR to fix this: https://github.com/huggingface/huggingface_hub/pull/2285
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