Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ [Tasks] JSON Schema spec for Inference types + TS type generation (#…
…449) # TL;DR - Introduces specification for inference input/output types for each task, in JSON Schema format - Add a "script" to generate typescript code from that JSON spec using [`quicktype-core`](https://github.com/glideapps/quicktype/tree/master/packages/quicktype-core) - Introduces `quicktype-core` as a dev dependency (from our fork of quicktype https://github.com/huggingface/quicktype/releases/tag/pack-18.0.15) - License: Apache-2.0 # TODO - [x] Add a `text2text-generation` task to serve as a "canonical reference" for `summarization` & `translation` - [x] Add a `text-to-audio` task to server as a "canonical reference" for `text-to-speech` - [ ] Code generation tweaks - [x] Change `any` types to `unknown` - [x] Generate output types for `sentence-similarity` - [ ] Generate output types for `feature-extraction` -> Let's do that later? - [x] add placeholder specs
- Loading branch information