Skip to content
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

hf.visualQuestionAnswering is not a function #201

Closed
codeacme17 opened this issue May 23, 2023 · 3 comments
Closed

hf.visualQuestionAnswering is not a function #201

codeacme17 opened this issue May 23, 2023 · 3 comments

Comments

@codeacme17
Copy link

await hf.visualQuestionAnswering({
  model: 'dandelin/vilt-b32-finetuned-vqa',
  inputs: {
    question: 'what the content of this picture',
    image: raw_image,
  },
})

I use above code, but there was a error TypeError: hf.visualQuestionAnswering is not a function

I found out that visualQuestionAnswering doesn't exist on instances of hf

@coyotte508
Copy link
Member

coyotte508 commented May 23, 2023

Can you give the full code? or console.log(hf)?

@vvmnnnkv
Copy link
Collaborator

Please also check inference package version, visualQuestionAnswering appears in v2.2.0

@codeacme17
Copy link
Author

Yes I updated the version and it solved the problem,THX,I think i can close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants