huggingface.js icon indicating copy to clipboard operation
huggingface.js copied to clipboard

Pipelines snippets: add the inference call

Open gary149 opened this issue 1 year ago • 1 comments

To be discussed One line away from having a complete snippet you can run by copy-pasting?

Idea from the transformers.js docs, where you can see the complete pipeline: image

Should we update to this? image

gary149 avatar Jan 23 '24 10:01 gary149

This looks simple for text but becomes trickier for audio/images or tasks such as zero-shot classification. If we do this, I would try to reuse the work done in https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/src/snippets/python.ts

osanseviero avatar Jan 30 '24 17:01 osanseviero