Skip to content

More information about HFInference #88

Answered by coyotte508
hpssjellis asked this question in Q&A
Discussion options

You must be logged in to vote

https://stackoverflow.com/questions/31423573/how-to-enumerate-es6-class-methods no ?

const {HfInference} = require("@huggingface/inference");

const hf = new HfInference()

for (const key of Object.getOwnPropertyNames(Object.getPrototypeOf(hf))) {
  console.log(key, typeof hf[key], hf[key]);
}

It's not really a HF inference question but a javascript question.

Also, you have the sources available on github. And https://huggingface.co/docs/huggingface.js/inference/classes/HfInference .

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@radames
Comment options

Answer selected by coyotte508
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@coyotte508
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #87 on March 10, 2023 15:53.