-
Notifications
You must be signed in to change notification settings - Fork 535
[Inference] Generate binary types as Blob and use the generated types in the inference client
#1116
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
Conversation
| "audio": { | ||
| "description": "The generated audio waveform." | ||
| "description": "The generated audio waveform.", | ||
| "comment": "type=binary" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used this trick to mark a parameter as "binary" (which translates, in the generated Typescript code, to declaring it to be of type Blob)
Generation code: https://github.com/huggingface/huggingface.js/pull/1116/files#diff-3a9454ed7c359e2e0522703d9acf4559f6b10fdd67236692bdd4422dd9c8f472R97-R182
Blob and use the generated types in the inference clientBlob and use the generated types in the inference client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haven't dived in detail but the compatibility plan LGTM @SBrandeis
TL;DR
@huggingface/tasksJSON schemas to type the input types of the Inference client