diff --git a/packages/tasks/src/tasks/audio-classification/inference.ts b/packages/tasks/src/tasks/audio-classification/inference.ts index ae37f29acf02093b61d66d85a6fba074002998bf..e8482d3993343da80709674740411ef80822aa94 100644 --- a/packages/tasks/src/tasks/audio-classification/inference.ts +++ b/packages/tasks/src/tasks/audio-classification/inference.ts @@ -10,7 +10,7 @@ export interface AudioClassificationInput { /** * The input audio data */ - data: unknown; + inputs: unknown; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/audio-classification/spec/input.json b/packages/tasks/src/tasks/audio-classification/spec/input.json index cfd5a54a6f8bbfd78cd84aafc324b6717fb0708b..1a1c447d1dcafae2bff8f163503ca7d0f35d679e 100644 --- a/packages/tasks/src/tasks/audio-classification/spec/input.json +++ b/packages/tasks/src/tasks/audio-classification/spec/input.json @@ -5,7 +5,7 @@ "title": "AudioClassificationInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input audio data" }, "parameters": { @@ -30,5 +30,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/automatic-speech-recognition/inference.ts b/packages/tasks/src/tasks/automatic-speech-recognition/inference.ts index d9e2adc859a380bd85aa3d7cd5d9babaff5d0591..302cd0757acd198b9a797c9e3c7bab26804b0eb4 100644 --- a/packages/tasks/src/tasks/automatic-speech-recognition/inference.ts +++ b/packages/tasks/src/tasks/automatic-speech-recognition/inference.ts @@ -10,7 +10,7 @@ export interface AutomaticSpeechRecognitionInput { /** * The input audio data */ - data: unknown; + inputs: unknown; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/automatic-speech-recognition/spec/input.json b/packages/tasks/src/tasks/automatic-speech-recognition/spec/input.json index 2d31957ed260375435a6daa937814f1877bad298..e1a84a299c62dfa33024cc96bf8ae3f79499603d 100644 --- a/packages/tasks/src/tasks/automatic-speech-recognition/spec/input.json +++ b/packages/tasks/src/tasks/automatic-speech-recognition/spec/input.json @@ -5,7 +5,7 @@ "title": "AutomaticSpeechRecognitionInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input audio data" }, "parameters": { @@ -30,5 +30,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/depth-estimation/inference.ts b/packages/tasks/src/tasks/depth-estimation/inference.ts index 2eb17c74e3969c6340f46027e2137a0e094dc4e3..8ec78985265e04919131845021d4bc179fbe72f4 100644 --- a/packages/tasks/src/tasks/depth-estimation/inference.ts +++ b/packages/tasks/src/tasks/depth-estimation/inference.ts @@ -11,7 +11,7 @@ export interface DepthEstimationInput { /** * The input image data */ - data: unknown; + inputs: unknown; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/depth-estimation/spec/input.json b/packages/tasks/src/tasks/depth-estimation/spec/input.json index bbf31ff9e548e3c23a11d2a0c0595d389ae1b73e..2a4ecc71cc271b5d348cf82f93f0c833b7f0e9b8 100644 --- a/packages/tasks/src/tasks/depth-estimation/spec/input.json +++ b/packages/tasks/src/tasks/depth-estimation/spec/input.json @@ -5,7 +5,7 @@ "title": "DepthEstimationInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input image data" }, "parameters": { @@ -21,5 +21,5 @@ "properties": {} } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/document-question-answering/inference.ts b/packages/tasks/src/tasks/document-question-answering/inference.ts index cd2ab54051771d56db62d866a6b757d91d7ea6be..14a7432c922b245a3fb475d6acc397e80a18fec4 100644 --- a/packages/tasks/src/tasks/document-question-answering/inference.ts +++ b/packages/tasks/src/tasks/document-question-answering/inference.ts @@ -10,7 +10,7 @@ export interface DocumentQuestionAnsweringInput { /** * One (document, question) pair to answer */ - data: DocumentQuestionAnsweringInputData; + inputs: DocumentQuestionAnsweringInputData; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/document-question-answering/spec/input.json b/packages/tasks/src/tasks/document-question-answering/spec/input.json index a607735e749af26778c8e8e41d31b10d865fc3d7..12d38ec81a820dc925fc65b12cf8c61b7540653f 100644 --- a/packages/tasks/src/tasks/document-question-answering/spec/input.json +++ b/packages/tasks/src/tasks/document-question-answering/spec/input.json @@ -5,7 +5,7 @@ "title": "DocumentQuestionAnsweringInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "One (document, question) pair to answer", "type": "object", "title": "DocumentQuestionAnsweringInputData", @@ -81,5 +81,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/feature-extraction/inference.ts b/packages/tasks/src/tasks/feature-extraction/inference.ts index 22dc8dd1d925dac35620e4e4b5f7e90add421f2e..36f47083a91b53a2800be90fc4bfa79a2ea81b7b 100644 --- a/packages/tasks/src/tasks/feature-extraction/inference.ts +++ b/packages/tasks/src/tasks/feature-extraction/inference.ts @@ -13,7 +13,7 @@ export interface FeatureExtractionInput { /** * The text to get the embeddings of */ - data: string; + inputs: string; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/feature-extraction/spec/input.json b/packages/tasks/src/tasks/feature-extraction/spec/input.json index a61455f6ca13f1484efd1ed8024c98035693d824..12b30c249f0b827b6d221cb7ac7c96b2f9e803f8 100644 --- a/packages/tasks/src/tasks/feature-extraction/spec/input.json +++ b/packages/tasks/src/tasks/feature-extraction/spec/input.json @@ -5,7 +5,7 @@ "title": "FeatureExtractionInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The text to get the embeddings of", "type": "string" }, @@ -22,5 +22,5 @@ "properties": {} } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/fill-mask/inference.ts b/packages/tasks/src/tasks/fill-mask/inference.ts index b80383da64846f26c1ab802ab7f5bd8f072bbc47..8784e979637aa00e022e928d1bf851c4b8835797 100644 --- a/packages/tasks/src/tasks/fill-mask/inference.ts +++ b/packages/tasks/src/tasks/fill-mask/inference.ts @@ -10,7 +10,7 @@ export interface FillMaskInput { /** * The text with masked tokens */ - data: string; + inputs: string; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/fill-mask/spec/input.json b/packages/tasks/src/tasks/fill-mask/spec/input.json index 00def602ef7afc3cd75cc63351906431f0e47f2a..009baf364b5462a3fc49d1302711aa06008073e9 100644 --- a/packages/tasks/src/tasks/fill-mask/spec/input.json +++ b/packages/tasks/src/tasks/fill-mask/spec/input.json @@ -5,7 +5,7 @@ "title": "FillMaskInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The text with masked tokens", "type": "string" }, @@ -34,5 +34,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/image-classification/inference.ts b/packages/tasks/src/tasks/image-classification/inference.ts index 7138a50735ece63d7fea100fbdeb9b7d5ae95625..92ca03e0d81456ca7a7ef585d27c1f0572ec0890 100644 --- a/packages/tasks/src/tasks/image-classification/inference.ts +++ b/packages/tasks/src/tasks/image-classification/inference.ts @@ -10,7 +10,7 @@ export interface ImageClassificationInput { /** * The input image data */ - data: unknown; + inputs: unknown; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/image-classification/spec/input.json b/packages/tasks/src/tasks/image-classification/spec/input.json index 362c0d517167e8a7676b9fee4cf5c3b4d338c129..8c2c2fcc709a851dcf2401e3a93a5742e6281816 100644 --- a/packages/tasks/src/tasks/image-classification/spec/input.json +++ b/packages/tasks/src/tasks/image-classification/spec/input.json @@ -5,7 +5,7 @@ "title": "ImageClassificationInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input image data" }, "parameters": { @@ -30,5 +30,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/image-segmentation/inference.ts b/packages/tasks/src/tasks/image-segmentation/inference.ts index b316715f54c1a8aa746c0287295c70d53c80c102..7d552b66e5ed0c188c59f1190d853e4b366fc6a0 100644 --- a/packages/tasks/src/tasks/image-segmentation/inference.ts +++ b/packages/tasks/src/tasks/image-segmentation/inference.ts @@ -10,7 +10,7 @@ export interface ImageSegmentationInput { /** * The input image data */ - data: unknown; + inputs: unknown; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/image-segmentation/spec/input.json b/packages/tasks/src/tasks/image-segmentation/spec/input.json index ae4adc70e902c266f0ef206da2063fab7a71eb87..169036406c40b22af16a779b3a94d58fd026f85c 100644 --- a/packages/tasks/src/tasks/image-segmentation/spec/input.json +++ b/packages/tasks/src/tasks/image-segmentation/spec/input.json @@ -5,7 +5,7 @@ "title": "ImageSegmentationInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input image data" }, "parameters": { @@ -50,5 +50,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/image-to-image/inference.ts b/packages/tasks/src/tasks/image-to-image/inference.ts index 96a532b25277e4d72ce5977a16f423a42c2a49da..f2d3064c800ff7ea79b19e02d4fcd0c985c644eb 100644 --- a/packages/tasks/src/tasks/image-to-image/inference.ts +++ b/packages/tasks/src/tasks/image-to-image/inference.ts @@ -11,7 +11,7 @@ export interface ImageToImageInput { /** * The input image data */ - data: unknown; + inputs: unknown; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/image-to-image/spec/input.json b/packages/tasks/src/tasks/image-to-image/spec/input.json index 11d4bee8af287737b4e71c75582ee86ebd95d9f6..ac6d7aed65d43b1cbaa75188c565740928e85fcf 100644 --- a/packages/tasks/src/tasks/image-to-image/spec/input.json +++ b/packages/tasks/src/tasks/image-to-image/spec/input.json @@ -5,7 +5,7 @@ "title": "ImageToImageInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input image data" }, "parameters": { @@ -25,7 +25,9 @@ }, "negativePrompt": { "type": "array", - "items": { "type": "string" }, + "items": { + "type": "string" + }, "description": "One or several prompt to guide what NOT to include in image generation." }, "numInferenceSteps": { @@ -48,5 +50,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/image-to-text/inference.ts b/packages/tasks/src/tasks/image-to-text/inference.ts index 19bb147e2d14e0e7c79cfd4d905cf7fcd2fea51d..84dc7b80f0a1d2959dfb8d2918125e712d789b1e 100644 --- a/packages/tasks/src/tasks/image-to-text/inference.ts +++ b/packages/tasks/src/tasks/image-to-text/inference.ts @@ -10,7 +10,7 @@ export interface ImageToTextInput { /** * The input image data */ - data: unknown; + inputs: unknown; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/image-to-text/spec/input.json b/packages/tasks/src/tasks/image-to-text/spec/input.json index 0ef8ba1dc5fcde18fc86069887b54bba870c6f23..d3c367b951beaa5b4c54a22af874b7a8b51bbc52 100644 --- a/packages/tasks/src/tasks/image-to-text/spec/input.json +++ b/packages/tasks/src/tasks/image-to-text/spec/input.json @@ -5,7 +5,7 @@ "title": "ImageToTextInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input image data" }, "parameters": { @@ -30,5 +30,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/object-detection/inference.ts b/packages/tasks/src/tasks/object-detection/inference.ts index 9650c781e072dcc73234d2e21d86dc82b75f5e2c..d1765ad0054536c3da0b0889ff79d2884d2d3182 100644 --- a/packages/tasks/src/tasks/object-detection/inference.ts +++ b/packages/tasks/src/tasks/object-detection/inference.ts @@ -10,7 +10,7 @@ export interface ObjectDetectionInput { /** * The input image data */ - data: unknown; + inputs: unknown; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/object-detection/spec/input.json b/packages/tasks/src/tasks/object-detection/spec/input.json index e01ebf496542ba2e1f45cd8bf25f580cd8d882c4..b694f2fa52962600d7627d1c9acf3602e4438891 100644 --- a/packages/tasks/src/tasks/object-detection/spec/input.json +++ b/packages/tasks/src/tasks/object-detection/spec/input.json @@ -5,7 +5,7 @@ "title": "ObjectDetectionInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input image data" }, "parameters": { @@ -26,5 +26,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/placeholder/spec/input.json b/packages/tasks/src/tasks/placeholder/spec/input.json index 5c206baef38f8ce8c2eac0e7cc771c5dd6f5c16e..aded2e46a6d155eaed9f222cd57cef96a55742a6 100644 --- a/packages/tasks/src/tasks/placeholder/spec/input.json +++ b/packages/tasks/src/tasks/placeholder/spec/input.json @@ -5,7 +5,7 @@ "title": "PlaceholderInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "TODO: describe the input here. This must be model & framework agnostic.", "type": "string" }, @@ -31,5 +31,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/question-answering/inference.ts b/packages/tasks/src/tasks/question-answering/inference.ts index bffc71cc6e29c0da0fe257e844731411fcdceba2..e2aa0088a743e03344aff2be07902a752b1bc96f 100644 --- a/packages/tasks/src/tasks/question-answering/inference.ts +++ b/packages/tasks/src/tasks/question-answering/inference.ts @@ -10,7 +10,7 @@ export interface QuestionAnsweringInput { /** * One (context, question) pair to answer */ - data: QuestionAnsweringInputData; + inputs: QuestionAnsweringInputData; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/question-answering/spec/input.json b/packages/tasks/src/tasks/question-answering/spec/input.json index 088e77200b4ac58f5e31df546e7b6741400d4e84..62f36ebc99d6a6a11e661b379c23db130337bcc3 100644 --- a/packages/tasks/src/tasks/question-answering/spec/input.json +++ b/packages/tasks/src/tasks/question-answering/spec/input.json @@ -5,7 +5,7 @@ "title": "QuestionAnsweringInput", "type": "object", "properties": { - "data": { + "inputs": { "title": "QuestionAnsweringInputData", "description": "One (context, question) pair to answer", "type": "object", @@ -63,5 +63,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/sentence-similarity/inference.ts b/packages/tasks/src/tasks/sentence-similarity/inference.ts index f1b72447d5c8d94051c89ebe44a762bf3995e941..646e18b486af8639792a99014715abc3c61afa52 100644 --- a/packages/tasks/src/tasks/sentence-similarity/inference.ts +++ b/packages/tasks/src/tasks/sentence-similarity/inference.ts @@ -10,7 +10,7 @@ export type SentenceSimilarityOutput = number[]; * Inputs for Sentence similarity inference */ export interface SentenceSimilarityInput { - data: SentenceSimilarityInputData; + inputs: SentenceSimilarityInputData; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/sentence-similarity/spec/input.json b/packages/tasks/src/tasks/sentence-similarity/spec/input.json index 8bb9e2e5ade6da3becb9fbf1c45bcb154c6720a6..ecff3479d77eef3fa2b77393d7c0255f1ce494ea 100644 --- a/packages/tasks/src/tasks/sentence-similarity/spec/input.json +++ b/packages/tasks/src/tasks/sentence-similarity/spec/input.json @@ -5,7 +5,7 @@ "title": "SentenceSimilarityInput", "type": "object", "properties": { - "data": { + "inputs": { "title": "SentenceSimilarityInputData", "type": "object", "properties": { @@ -36,5 +36,5 @@ "properties": {} } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/summarization/inference.ts b/packages/tasks/src/tasks/summarization/inference.ts index 16d30cf7a10d1c16d684f47a95a7956375c57542..5cc2bb0d2b750ce4fd1e2ebbd24fe2e3e8da9f75 100644 --- a/packages/tasks/src/tasks/summarization/inference.ts +++ b/packages/tasks/src/tasks/summarization/inference.ts @@ -13,7 +13,7 @@ export interface SummarizationInput { /** * The input text data */ - data: string; + inputs: string; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/table-question-answering/inference.ts b/packages/tasks/src/tasks/table-question-answering/inference.ts index fe06dbbfe538d8089468d48b19413e0a69b8619a..7e79fa2c8b083443901da8473aad6819b374aeb1 100644 --- a/packages/tasks/src/tasks/table-question-answering/inference.ts +++ b/packages/tasks/src/tasks/table-question-answering/inference.ts @@ -10,7 +10,7 @@ export interface TableQuestionAnsweringInput { /** * One (table, question) pair to answer */ - data: TableQuestionAnsweringInputData; + inputs: TableQuestionAnsweringInputData; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/table-question-answering/spec/input.json b/packages/tasks/src/tasks/table-question-answering/spec/input.json index 6309cf1f36a793cc45772f3dbb17a300f8610f1a..3dfdd02a73bc26dd3fc9fd02c248b164dd22a489 100644 --- a/packages/tasks/src/tasks/table-question-answering/spec/input.json +++ b/packages/tasks/src/tasks/table-question-answering/spec/input.json @@ -5,7 +5,7 @@ "title": "TableQuestionAnsweringInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "One (table, question) pair to answer", "title": "TableQuestionAnsweringInputData", "type": "object", @@ -13,7 +13,12 @@ "table": { "description": "The table to serve as context for the questions", "type": "object", - "additionalProperties": { "type": "array", "items": { "type": "string" } } + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } }, "question": { "description": "The question to be answered about the table", @@ -35,5 +40,5 @@ "properties": {} } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/text-classification/inference.ts b/packages/tasks/src/tasks/text-classification/inference.ts index 9bc728a50c2257832b5055cca4ce4cc81cdf46a5..2272d903b95c8d84dd36d5b0851196d6bb9ef857 100644 --- a/packages/tasks/src/tasks/text-classification/inference.ts +++ b/packages/tasks/src/tasks/text-classification/inference.ts @@ -10,7 +10,7 @@ export interface TextClassificationInput { /** * The text to classify */ - data: string; + inputs: string; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/text-classification/spec/input.json b/packages/tasks/src/tasks/text-classification/spec/input.json index 6ae6f1c39ccc11b2007b8b628b790e92c6e51d4b..10b98cbba3af88698a7979b5890925d0261390e9 100644 --- a/packages/tasks/src/tasks/text-classification/spec/input.json +++ b/packages/tasks/src/tasks/text-classification/spec/input.json @@ -5,7 +5,7 @@ "title": "TextClassificationInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The text to classify", "type": "string" }, @@ -31,5 +31,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/text-generation/inference.ts b/packages/tasks/src/tasks/text-generation/inference.ts index 94279336c88bb973d686050cc445292305739a20..52adc0ace30af542a30f323cf764127c34071fb2 100644 --- a/packages/tasks/src/tasks/text-generation/inference.ts +++ b/packages/tasks/src/tasks/text-generation/inference.ts @@ -10,7 +10,7 @@ export interface TextGenerationInput { /** * The text to initialize generation with */ - data: string; + inputs: string; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/text-generation/spec/input.json b/packages/tasks/src/tasks/text-generation/spec/input.json index 223561691304ec54972759cc26a6d5e92c325610..c4756edd3fa55a04bd1a7ce5e54e10e7d720e376 100644 --- a/packages/tasks/src/tasks/text-generation/spec/input.json +++ b/packages/tasks/src/tasks/text-generation/spec/input.json @@ -5,7 +5,7 @@ "title": "TextGenerationInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The text to initialize generation with", "type": "string" }, @@ -70,5 +70,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/text-to-audio/inference.ts b/packages/tasks/src/tasks/text-to-audio/inference.ts index 14c484bf2fe212836200d2f1bbf5d4d6ddbc4b90..2ac6b3c08e1462ce22c0c64f952fa2e5a1164215 100644 --- a/packages/tasks/src/tasks/text-to-audio/inference.ts +++ b/packages/tasks/src/tasks/text-to-audio/inference.ts @@ -10,7 +10,7 @@ export interface TextToAudioInput { /** * The input text data */ - data: string; + inputs: string; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/text-to-audio/spec/input.json b/packages/tasks/src/tasks/text-to-audio/spec/input.json index 95bd8d16db3e0874c947138250778c889578b097..08267d681a23d7e281295b3e9b84e6a0a390f5fb 100644 --- a/packages/tasks/src/tasks/text-to-audio/spec/input.json +++ b/packages/tasks/src/tasks/text-to-audio/spec/input.json @@ -5,7 +5,7 @@ "title": "TextToAudioInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input text data", "type": "string" }, @@ -27,5 +27,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/text-to-image/inference.ts b/packages/tasks/src/tasks/text-to-image/inference.ts index c25031b29ef5bffdd1aa61c82c355e8d81bda31c..14237ebda2775336390b2cd6125bd346f4bff287 100644 --- a/packages/tasks/src/tasks/text-to-image/inference.ts +++ b/packages/tasks/src/tasks/text-to-image/inference.ts @@ -11,7 +11,7 @@ export interface TextToImageInput { /** * The input text data (sometimes called "prompt" */ - data: string; + inputs: string; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/text-to-image/spec/input.json b/packages/tasks/src/tasks/text-to-image/spec/input.json index cb1e1c6cf6cecb91e6c657c02cd5f2fc40a24ef8..130678fc91cb0bbd8709d42ec4f4956ac7e78427 100644 --- a/packages/tasks/src/tasks/text-to-image/spec/input.json +++ b/packages/tasks/src/tasks/text-to-image/spec/input.json @@ -5,7 +5,7 @@ "title": "TextToImageInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input text data (sometimes called \"prompt\"", "type": "string" }, @@ -26,7 +26,9 @@ }, "negativePrompt": { "type": "array", - "items": { "type": "string" }, + "items": { + "type": "string" + }, "description": "One or several prompt to guide what NOT to include in image generation." }, "numInferenceSteps": { @@ -53,5 +55,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/text-to-speech/inference.ts b/packages/tasks/src/tasks/text-to-speech/inference.ts index f67e03652a1ee6a3250397bf15c2367390080908..d23b3e76a53424eb277bd15a131c2f19343ed254 100644 --- a/packages/tasks/src/tasks/text-to-speech/inference.ts +++ b/packages/tasks/src/tasks/text-to-speech/inference.ts @@ -13,7 +13,7 @@ export interface TextToSpeechInput { /** * The input text data */ - data: string; + inputs: string; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/text2text-generation/inference.ts b/packages/tasks/src/tasks/text2text-generation/inference.ts index 788845dd24eee041de676d8d9cafea7412fe0feb..e2649dd4109c17e7530f691a76e2af3d5d93dfac 100644 --- a/packages/tasks/src/tasks/text2text-generation/inference.ts +++ b/packages/tasks/src/tasks/text2text-generation/inference.ts @@ -10,7 +10,7 @@ export interface Text2TextGenerationInput { /** * The input text data */ - data: string; + inputs: string; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/text2text-generation/spec/input.json b/packages/tasks/src/tasks/text2text-generation/spec/input.json index a00ae575fc4df0e1579890155b299ed29ac2b665..da818bc044b236ede94d8992d515a0d0e4aee4c8 100644 --- a/packages/tasks/src/tasks/text2text-generation/spec/input.json +++ b/packages/tasks/src/tasks/text2text-generation/spec/input.json @@ -5,7 +5,7 @@ "title": "Text2TextGenerationInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input text data", "type": "string" }, @@ -51,5 +51,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/token-classification/inference.ts b/packages/tasks/src/tasks/token-classification/inference.ts index 7a8da8dcfc00dfea605a8188a46d860c36125812..17f0d798e23e56c7c7c05373c02ee4b123f6e2b2 100644 --- a/packages/tasks/src/tasks/token-classification/inference.ts +++ b/packages/tasks/src/tasks/token-classification/inference.ts @@ -10,7 +10,7 @@ export interface TokenClassificationInput { /** * The input text data */ - data: string; + inputs: string; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/token-classification/spec/input.json b/packages/tasks/src/tasks/token-classification/spec/input.json index 2fd89ce34cda5763bcce15848658eada114cc4c5..0b29d0ab13dea645e2163390367beaed593fa2e9 100644 --- a/packages/tasks/src/tasks/token-classification/spec/input.json +++ b/packages/tasks/src/tasks/token-classification/spec/input.json @@ -5,7 +5,7 @@ "title": "TokenClassificationInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input text data", "type": "string" }, @@ -61,5 +61,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/translation/inference.ts b/packages/tasks/src/tasks/translation/inference.ts index c932617a4036681d16df3c928ee9707a4f157a7e..b4d6bd7162b4c5fbe4d713d7210126f9decc94be 100644 --- a/packages/tasks/src/tasks/translation/inference.ts +++ b/packages/tasks/src/tasks/translation/inference.ts @@ -13,7 +13,7 @@ export interface TranslationInput { /** * The input text data */ - data: string; + inputs: string; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/video-classification/inference.ts b/packages/tasks/src/tasks/video-classification/inference.ts index 1f765160f37ee54a0966953dc942d51d5a6fe158..0366d38db4df15206adf078f31e2888eceeb06f6 100644 --- a/packages/tasks/src/tasks/video-classification/inference.ts +++ b/packages/tasks/src/tasks/video-classification/inference.ts @@ -10,7 +10,7 @@ export interface VideoClassificationInput { /** * The input video data */ - data: unknown; + inputs: unknown; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/video-classification/spec/input.json b/packages/tasks/src/tasks/video-classification/spec/input.json index 984670953b29c170ea3bba1488c295ace89aecae..11861209319afc388d4bb5d5bda1261ca7c6823a 100644 --- a/packages/tasks/src/tasks/video-classification/spec/input.json +++ b/packages/tasks/src/tasks/video-classification/spec/input.json @@ -5,7 +5,7 @@ "title": "VideoClassificationInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input video data" }, "parameters": { @@ -38,5 +38,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/visual-question-answering/inference.ts b/packages/tasks/src/tasks/visual-question-answering/inference.ts index 0eb513ebf6432dce2550bb3d9fadfb8e218d9797..8df826bd8f32abfdf33396d6b486e626e024f1ff 100644 --- a/packages/tasks/src/tasks/visual-question-answering/inference.ts +++ b/packages/tasks/src/tasks/visual-question-answering/inference.ts @@ -10,7 +10,7 @@ export interface VisualQuestionAnsweringInput { /** * One (image, question) pair to answer */ - data: VisualQuestionAnsweringInputData; + inputs: VisualQuestionAnsweringInputData; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/visual-question-answering/spec/input.json b/packages/tasks/src/tasks/visual-question-answering/spec/input.json index b6cb0e123cb842041dc930a8c0c80bb295179499..17d6cda2d34b7ae6111d386e6fae00eef352a80d 100644 --- a/packages/tasks/src/tasks/visual-question-answering/spec/input.json +++ b/packages/tasks/src/tasks/visual-question-answering/spec/input.json @@ -5,7 +5,7 @@ "title": "VisualQuestionAnsweringInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "One (image, question) pair to answer", "type": "object", "title": "VisualQuestionAnsweringInputData", @@ -37,5 +37,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/zero-shot-classification/inference.ts b/packages/tasks/src/tasks/zero-shot-classification/inference.ts index e0b43ec70b77c9ec760422e7d1f16cc36721403f..d5ecfd72839b3b7a72b1a9203b4162b0159baad9 100644 --- a/packages/tasks/src/tasks/zero-shot-classification/inference.ts +++ b/packages/tasks/src/tasks/zero-shot-classification/inference.ts @@ -10,7 +10,7 @@ export interface ZeroShotClassificationInput { /** * The input text data, with candidate labels */ - data: ZeroShotClassificationInputData; + inputs: ZeroShotClassificationInputData; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/zero-shot-classification/spec/input.json b/packages/tasks/src/tasks/zero-shot-classification/spec/input.json index 689c22769c8c1d1ec010f5b1d76f812a8fa33d97..d9d0c61aa07d49e7bd683b07ad24a0bdd6dbbcf6 100644 --- a/packages/tasks/src/tasks/zero-shot-classification/spec/input.json +++ b/packages/tasks/src/tasks/zero-shot-classification/spec/input.json @@ -5,7 +5,7 @@ "title": "ZeroShotClassificationInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input text data, with candidate labels", "type": "object", "title": "ZeroShotClassificationInputData", @@ -46,5 +46,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/zero-shot-image-classification/inference.ts b/packages/tasks/src/tasks/zero-shot-image-classification/inference.ts index 2bea5436b8882eccd3bd24de27dabac020e5b7c1..66f6eb43151003a574e188f5ab0e6276934157d9 100644 --- a/packages/tasks/src/tasks/zero-shot-image-classification/inference.ts +++ b/packages/tasks/src/tasks/zero-shot-image-classification/inference.ts @@ -10,7 +10,7 @@ export interface ZeroShotImageClassificationInput { /** * The input image data, with candidate labels */ - data: ZeroShotImageClassificationInputData; + inputs: ZeroShotImageClassificationInputData; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/zero-shot-image-classification/spec/input.json b/packages/tasks/src/tasks/zero-shot-image-classification/spec/input.json index d5b212918ff1ddbee93a1297735d12335527dc07..7d66a51df17a9b2ef9962b224eaea311864468fd 100644 --- a/packages/tasks/src/tasks/zero-shot-image-classification/spec/input.json +++ b/packages/tasks/src/tasks/zero-shot-image-classification/spec/input.json @@ -5,7 +5,7 @@ "title": "ZeroShotImageClassificationInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input image data, with candidate labels", "type": "object", "title": "ZeroShotImageClassificationInputData", @@ -41,5 +41,5 @@ } } }, - "required": ["data"] + "required": ["inputs"] } diff --git a/packages/tasks/src/tasks/zero-shot-object-detection/inference.ts b/packages/tasks/src/tasks/zero-shot-object-detection/inference.ts index edb51172eceace9896d5b12e20a3cb38aa4ab953..87447ca0adeaa5c155a0d220a0362938d73dbae0 100644 --- a/packages/tasks/src/tasks/zero-shot-object-detection/inference.ts +++ b/packages/tasks/src/tasks/zero-shot-object-detection/inference.ts @@ -10,7 +10,7 @@ export interface ZeroShotObjectDetectionInput { /** * The input image data, with candidate labels */ - data: ZeroShotObjectDetectionInputData; + inputs: ZeroShotObjectDetectionInputData; /** * Additional inference parameters */ diff --git a/packages/tasks/src/tasks/zero-shot-object-detection/spec/input.json b/packages/tasks/src/tasks/zero-shot-object-detection/spec/input.json index 63dce00edb3607cf062af797bcaa136692ab11f9..7c9aa15acb70a5c651764336374ce31883ee97ed 100644 --- a/packages/tasks/src/tasks/zero-shot-object-detection/spec/input.json +++ b/packages/tasks/src/tasks/zero-shot-object-detection/spec/input.json @@ -5,7 +5,7 @@ "title": "ZeroShotObjectDetectionInput", "type": "object", "properties": { - "data": { + "inputs": { "description": "The input image data, with candidate labels", "type": "object", "title": "ZeroShotObjectDetectionInputData", @@ -36,5 +36,5 @@ "properties": {} } }, - "required": ["data"] + "required": ["inputs"] }