transformers.js
38ec1d41 - Improve typing of `pipeline` helper function (#485)

Commit
1 year ago
Improve typing of `pipeline` helper function (#485) * Improve typing of `pipeline` helper function * Overhaul image pipeline types * Improve typing * Fix export * Do not require separate proxy object * Update text classification pipeline types * Fix calls to base pipeline * Improve inheritance * Fix JSDoc * Update token classification pipeline typing * Update question answering pipeline * Update fill-mask pipeline * Fix JSDoc * Improve generation config typing * Update text2text generation pipeline * Fix generation config type * Update summarization and translation pipelines * Update text generation pipeline types * Update zero-shot classification pipeline types * Update feature extraction pipeline types * Update audio pipeline types * Fix generation config types * Improve pipeline constructor types * Update image to text pipeline types * Update image classification pipeline types * Update zero-shot image classification pipeline types * Update ImageSegmentationPipeline constructor type * Update object detection pipeline types * Update zero-shot object detection pipeline types * Update document question answering pipeline types * Update text-to-audio pipeline types * Update image-to-image pipeline types * Update depth estimation pipeline types * Improve return JSDoc * Improve example pipeline JSDoc
Author
Parents
Loading