machineuser commited on
Commit
27a1c11
1 Parent(s): 1fd06a7

Sync widgets demo

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. packages/tasks/src/tasks/audio-classification/inference.ts +1 -1
  2. packages/tasks/src/tasks/audio-classification/spec/input.json +2 -2
  3. packages/tasks/src/tasks/automatic-speech-recognition/inference.ts +1 -1
  4. packages/tasks/src/tasks/automatic-speech-recognition/spec/input.json +2 -2
  5. packages/tasks/src/tasks/depth-estimation/inference.ts +1 -1
  6. packages/tasks/src/tasks/depth-estimation/spec/input.json +2 -2
  7. packages/tasks/src/tasks/document-question-answering/inference.ts +1 -1
  8. packages/tasks/src/tasks/document-question-answering/spec/input.json +2 -2
  9. packages/tasks/src/tasks/feature-extraction/inference.ts +1 -1
  10. packages/tasks/src/tasks/feature-extraction/spec/input.json +2 -2
  11. packages/tasks/src/tasks/fill-mask/inference.ts +1 -1
  12. packages/tasks/src/tasks/fill-mask/spec/input.json +2 -2
  13. packages/tasks/src/tasks/image-classification/inference.ts +1 -1
  14. packages/tasks/src/tasks/image-classification/spec/input.json +2 -2
  15. packages/tasks/src/tasks/image-segmentation/inference.ts +1 -1
  16. packages/tasks/src/tasks/image-segmentation/spec/input.json +2 -2
  17. packages/tasks/src/tasks/image-to-image/inference.ts +1 -1
  18. packages/tasks/src/tasks/image-to-image/spec/input.json +5 -3
  19. packages/tasks/src/tasks/image-to-text/inference.ts +1 -1
  20. packages/tasks/src/tasks/image-to-text/spec/input.json +2 -2
  21. packages/tasks/src/tasks/object-detection/inference.ts +1 -1
  22. packages/tasks/src/tasks/object-detection/spec/input.json +2 -2
  23. packages/tasks/src/tasks/placeholder/spec/input.json +2 -2
  24. packages/tasks/src/tasks/question-answering/inference.ts +1 -1
  25. packages/tasks/src/tasks/question-answering/spec/input.json +2 -2
  26. packages/tasks/src/tasks/sentence-similarity/inference.ts +1 -1
  27. packages/tasks/src/tasks/sentence-similarity/spec/input.json +2 -2
  28. packages/tasks/src/tasks/summarization/inference.ts +1 -1
  29. packages/tasks/src/tasks/table-question-answering/inference.ts +1 -1
  30. packages/tasks/src/tasks/table-question-answering/spec/input.json +8 -3
  31. packages/tasks/src/tasks/text-classification/inference.ts +1 -1
  32. packages/tasks/src/tasks/text-classification/spec/input.json +2 -2
  33. packages/tasks/src/tasks/text-generation/inference.ts +1 -1
  34. packages/tasks/src/tasks/text-generation/spec/input.json +2 -2
  35. packages/tasks/src/tasks/text-to-audio/inference.ts +1 -1
  36. packages/tasks/src/tasks/text-to-audio/spec/input.json +2 -2
  37. packages/tasks/src/tasks/text-to-image/inference.ts +1 -1
  38. packages/tasks/src/tasks/text-to-image/spec/input.json +5 -3
  39. packages/tasks/src/tasks/text-to-speech/inference.ts +1 -1
  40. packages/tasks/src/tasks/text2text-generation/inference.ts +1 -1
  41. packages/tasks/src/tasks/text2text-generation/spec/input.json +2 -2
  42. packages/tasks/src/tasks/token-classification/inference.ts +1 -1
  43. packages/tasks/src/tasks/token-classification/spec/input.json +2 -2
  44. packages/tasks/src/tasks/translation/inference.ts +1 -1
  45. packages/tasks/src/tasks/video-classification/inference.ts +1 -1
  46. packages/tasks/src/tasks/video-classification/spec/input.json +2 -2
  47. packages/tasks/src/tasks/visual-question-answering/inference.ts +1 -1
  48. packages/tasks/src/tasks/visual-question-answering/spec/input.json +2 -2
  49. packages/tasks/src/tasks/zero-shot-classification/inference.ts +1 -1
  50. packages/tasks/src/tasks/zero-shot-classification/spec/input.json +2 -2
packages/tasks/src/tasks/audio-classification/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface AudioClassificationInput {
10
  /**
11
  * The input audio data
12
  */
13
- data: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The input audio data
12
  */
13
+ inputs: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/audio-classification/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "AudioClassificationInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input audio data"
10
  },
11
  "parameters": {
@@ -30,5 +30,5 @@
30
  }
31
  }
32
  },
33
- "required": ["data"]
34
  }
 
5
  "title": "AudioClassificationInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input audio data"
10
  },
11
  "parameters": {
 
30
  }
31
  }
32
  },
33
+ "required": ["inputs"]
34
  }
packages/tasks/src/tasks/automatic-speech-recognition/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface AutomaticSpeechRecognitionInput {
10
  /**
11
  * The input audio data
12
  */
13
- data: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The input audio data
12
  */
13
+ inputs: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/automatic-speech-recognition/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "AutomaticSpeechRecognitionInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input audio data"
10
  },
11
  "parameters": {
@@ -30,5 +30,5 @@
30
  }
31
  }
32
  },
33
- "required": ["data"]
34
  }
 
5
  "title": "AutomaticSpeechRecognitionInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input audio data"
10
  },
11
  "parameters": {
 
30
  }
31
  }
32
  },
33
+ "required": ["inputs"]
34
  }
packages/tasks/src/tasks/depth-estimation/inference.ts CHANGED
@@ -11,7 +11,7 @@ export interface DepthEstimationInput {
11
  /**
12
  * The input image data
13
  */
14
- data: unknown;
15
  /**
16
  * Additional inference parameters
17
  */
 
11
  /**
12
  * The input image data
13
  */
14
+ inputs: unknown;
15
  /**
16
  * Additional inference parameters
17
  */
packages/tasks/src/tasks/depth-estimation/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "DepthEstimationInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input image data"
10
  },
11
  "parameters": {
@@ -21,5 +21,5 @@
21
  "properties": {}
22
  }
23
  },
24
- "required": ["data"]
25
  }
 
5
  "title": "DepthEstimationInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input image data"
10
  },
11
  "parameters": {
 
21
  "properties": {}
22
  }
23
  },
24
+ "required": ["inputs"]
25
  }
packages/tasks/src/tasks/document-question-answering/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface DocumentQuestionAnsweringInput {
10
  /**
11
  * One (document, question) pair to answer
12
  */
13
- data: DocumentQuestionAnsweringInputData;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * One (document, question) pair to answer
12
  */
13
+ inputs: DocumentQuestionAnsweringInputData;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/document-question-answering/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "DocumentQuestionAnsweringInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "One (document, question) pair to answer",
10
  "type": "object",
11
  "title": "DocumentQuestionAnsweringInputData",
@@ -81,5 +81,5 @@
81
  }
82
  }
83
  },
84
- "required": ["data"]
85
  }
 
5
  "title": "DocumentQuestionAnsweringInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "One (document, question) pair to answer",
10
  "type": "object",
11
  "title": "DocumentQuestionAnsweringInputData",
 
81
  }
82
  }
83
  },
84
+ "required": ["inputs"]
85
  }
packages/tasks/src/tasks/feature-extraction/inference.ts CHANGED
@@ -13,7 +13,7 @@ export interface FeatureExtractionInput {
13
  /**
14
  * The text to get the embeddings of
15
  */
16
- data: string;
17
  /**
18
  * Additional inference parameters
19
  */
 
13
  /**
14
  * The text to get the embeddings of
15
  */
16
+ inputs: string;
17
  /**
18
  * Additional inference parameters
19
  */
packages/tasks/src/tasks/feature-extraction/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "FeatureExtractionInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The text to get the embeddings of",
10
  "type": "string"
11
  },
@@ -22,5 +22,5 @@
22
  "properties": {}
23
  }
24
  },
25
- "required": ["data"]
26
  }
 
5
  "title": "FeatureExtractionInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The text to get the embeddings of",
10
  "type": "string"
11
  },
 
22
  "properties": {}
23
  }
24
  },
25
+ "required": ["inputs"]
26
  }
packages/tasks/src/tasks/fill-mask/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface FillMaskInput {
10
  /**
11
  * The text with masked tokens
12
  */
13
- data: string;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The text with masked tokens
12
  */
13
+ inputs: string;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/fill-mask/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "FillMaskInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The text with masked tokens",
10
  "type": "string"
11
  },
@@ -34,5 +34,5 @@
34
  }
35
  }
36
  },
37
- "required": ["data"]
38
  }
 
5
  "title": "FillMaskInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The text with masked tokens",
10
  "type": "string"
11
  },
 
34
  }
35
  }
36
  },
37
+ "required": ["inputs"]
38
  }
packages/tasks/src/tasks/image-classification/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface ImageClassificationInput {
10
  /**
11
  * The input image data
12
  */
13
- data: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The input image data
12
  */
13
+ inputs: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/image-classification/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "ImageClassificationInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input image data"
10
  },
11
  "parameters": {
@@ -30,5 +30,5 @@
30
  }
31
  }
32
  },
33
- "required": ["data"]
34
  }
 
5
  "title": "ImageClassificationInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input image data"
10
  },
11
  "parameters": {
 
30
  }
31
  }
32
  },
33
+ "required": ["inputs"]
34
  }
packages/tasks/src/tasks/image-segmentation/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface ImageSegmentationInput {
10
  /**
11
  * The input image data
12
  */
13
- data: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The input image data
12
  */
13
+ inputs: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/image-segmentation/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "ImageSegmentationInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input image data"
10
  },
11
  "parameters": {
@@ -50,5 +50,5 @@
50
  }
51
  }
52
  },
53
- "required": ["data"]
54
  }
 
5
  "title": "ImageSegmentationInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input image data"
10
  },
11
  "parameters": {
 
50
  }
51
  }
52
  },
53
+ "required": ["inputs"]
54
  }
packages/tasks/src/tasks/image-to-image/inference.ts CHANGED
@@ -11,7 +11,7 @@ export interface ImageToImageInput {
11
  /**
12
  * The input image data
13
  */
14
- data: unknown;
15
  /**
16
  * Additional inference parameters
17
  */
 
11
  /**
12
  * The input image data
13
  */
14
+ inputs: unknown;
15
  /**
16
  * Additional inference parameters
17
  */
packages/tasks/src/tasks/image-to-image/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "ImageToImageInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input image data"
10
  },
11
  "parameters": {
@@ -25,7 +25,9 @@
25
  },
26
  "negativePrompt": {
27
  "type": "array",
28
- "items": { "type": "string" },
 
 
29
  "description": "One or several prompt to guide what NOT to include in image generation."
30
  },
31
  "numInferenceSteps": {
@@ -48,5 +50,5 @@
48
  }
49
  }
50
  },
51
- "required": ["data"]
52
  }
 
5
  "title": "ImageToImageInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input image data"
10
  },
11
  "parameters": {
 
25
  },
26
  "negativePrompt": {
27
  "type": "array",
28
+ "items": {
29
+ "type": "string"
30
+ },
31
  "description": "One or several prompt to guide what NOT to include in image generation."
32
  },
33
  "numInferenceSteps": {
 
50
  }
51
  }
52
  },
53
+ "required": ["inputs"]
54
  }
packages/tasks/src/tasks/image-to-text/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface ImageToTextInput {
10
  /**
11
  * The input image data
12
  */
13
- data: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The input image data
12
  */
13
+ inputs: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/image-to-text/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "ImageToTextInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input image data"
10
  },
11
  "parameters": {
@@ -30,5 +30,5 @@
30
  }
31
  }
32
  },
33
- "required": ["data"]
34
  }
 
5
  "title": "ImageToTextInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input image data"
10
  },
11
  "parameters": {
 
30
  }
31
  }
32
  },
33
+ "required": ["inputs"]
34
  }
packages/tasks/src/tasks/object-detection/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface ObjectDetectionInput {
10
  /**
11
  * The input image data
12
  */
13
- data: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The input image data
12
  */
13
+ inputs: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/object-detection/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "ObjectDetectionInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input image data"
10
  },
11
  "parameters": {
@@ -26,5 +26,5 @@
26
  }
27
  }
28
  },
29
- "required": ["data"]
30
  }
 
5
  "title": "ObjectDetectionInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input image data"
10
  },
11
  "parameters": {
 
26
  }
27
  }
28
  },
29
+ "required": ["inputs"]
30
  }
packages/tasks/src/tasks/placeholder/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "PlaceholderInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "TODO: describe the input here. This must be model & framework agnostic.",
10
  "type": "string"
11
  },
@@ -31,5 +31,5 @@
31
  }
32
  }
33
  },
34
- "required": ["data"]
35
  }
 
5
  "title": "PlaceholderInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "TODO: describe the input here. This must be model & framework agnostic.",
10
  "type": "string"
11
  },
 
31
  }
32
  }
33
  },
34
+ "required": ["inputs"]
35
  }
packages/tasks/src/tasks/question-answering/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface QuestionAnsweringInput {
10
  /**
11
  * One (context, question) pair to answer
12
  */
13
- data: QuestionAnsweringInputData;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * One (context, question) pair to answer
12
  */
13
+ inputs: QuestionAnsweringInputData;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/question-answering/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "QuestionAnsweringInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "title": "QuestionAnsweringInputData",
10
  "description": "One (context, question) pair to answer",
11
  "type": "object",
@@ -63,5 +63,5 @@
63
  }
64
  }
65
  },
66
- "required": ["data"]
67
  }
 
5
  "title": "QuestionAnsweringInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "title": "QuestionAnsweringInputData",
10
  "description": "One (context, question) pair to answer",
11
  "type": "object",
 
63
  }
64
  }
65
  },
66
+ "required": ["inputs"]
67
  }
packages/tasks/src/tasks/sentence-similarity/inference.ts CHANGED
@@ -10,7 +10,7 @@ export type SentenceSimilarityOutput = number[];
10
  * Inputs for Sentence similarity inference
11
  */
12
  export interface SentenceSimilarityInput {
13
- data: SentenceSimilarityInputData;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  * Inputs for Sentence similarity inference
11
  */
12
  export interface SentenceSimilarityInput {
13
+ inputs: SentenceSimilarityInputData;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/sentence-similarity/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "SentenceSimilarityInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "title": "SentenceSimilarityInputData",
10
  "type": "object",
11
  "properties": {
@@ -36,5 +36,5 @@
36
  "properties": {}
37
  }
38
  },
39
- "required": ["data"]
40
  }
 
5
  "title": "SentenceSimilarityInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "title": "SentenceSimilarityInputData",
10
  "type": "object",
11
  "properties": {
 
36
  "properties": {}
37
  }
38
  },
39
+ "required": ["inputs"]
40
  }
packages/tasks/src/tasks/summarization/inference.ts CHANGED
@@ -13,7 +13,7 @@ export interface SummarizationInput {
13
  /**
14
  * The input text data
15
  */
16
- data: string;
17
  /**
18
  * Additional inference parameters
19
  */
 
13
  /**
14
  * The input text data
15
  */
16
+ inputs: string;
17
  /**
18
  * Additional inference parameters
19
  */
packages/tasks/src/tasks/table-question-answering/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface TableQuestionAnsweringInput {
10
  /**
11
  * One (table, question) pair to answer
12
  */
13
- data: TableQuestionAnsweringInputData;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * One (table, question) pair to answer
12
  */
13
+ inputs: TableQuestionAnsweringInputData;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/table-question-answering/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "TableQuestionAnsweringInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "One (table, question) pair to answer",
10
  "title": "TableQuestionAnsweringInputData",
11
  "type": "object",
@@ -13,7 +13,12 @@
13
  "table": {
14
  "description": "The table to serve as context for the questions",
15
  "type": "object",
16
- "additionalProperties": { "type": "array", "items": { "type": "string" } }
 
 
 
 
 
17
  },
18
  "question": {
19
  "description": "The question to be answered about the table",
@@ -35,5 +40,5 @@
35
  "properties": {}
36
  }
37
  },
38
- "required": ["data"]
39
  }
 
5
  "title": "TableQuestionAnsweringInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "One (table, question) pair to answer",
10
  "title": "TableQuestionAnsweringInputData",
11
  "type": "object",
 
13
  "table": {
14
  "description": "The table to serve as context for the questions",
15
  "type": "object",
16
+ "additionalProperties": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string"
20
+ }
21
+ }
22
  },
23
  "question": {
24
  "description": "The question to be answered about the table",
 
40
  "properties": {}
41
  }
42
  },
43
+ "required": ["inputs"]
44
  }
packages/tasks/src/tasks/text-classification/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface TextClassificationInput {
10
  /**
11
  * The text to classify
12
  */
13
- data: string;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The text to classify
12
  */
13
+ inputs: string;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/text-classification/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "TextClassificationInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The text to classify",
10
  "type": "string"
11
  },
@@ -31,5 +31,5 @@
31
  }
32
  }
33
  },
34
- "required": ["data"]
35
  }
 
5
  "title": "TextClassificationInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The text to classify",
10
  "type": "string"
11
  },
 
31
  }
32
  }
33
  },
34
+ "required": ["inputs"]
35
  }
packages/tasks/src/tasks/text-generation/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface TextGenerationInput {
10
  /**
11
  * The text to initialize generation with
12
  */
13
- data: string;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The text to initialize generation with
12
  */
13
+ inputs: string;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/text-generation/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "TextGenerationInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The text to initialize generation with",
10
  "type": "string"
11
  },
@@ -70,5 +70,5 @@
70
  }
71
  }
72
  },
73
- "required": ["data"]
74
  }
 
5
  "title": "TextGenerationInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The text to initialize generation with",
10
  "type": "string"
11
  },
 
70
  }
71
  }
72
  },
73
+ "required": ["inputs"]
74
  }
packages/tasks/src/tasks/text-to-audio/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface TextToAudioInput {
10
  /**
11
  * The input text data
12
  */
13
- data: string;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The input text data
12
  */
13
+ inputs: string;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/text-to-audio/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "TextToAudioInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input text data",
10
  "type": "string"
11
  },
@@ -27,5 +27,5 @@
27
  }
28
  }
29
  },
30
- "required": ["data"]
31
  }
 
5
  "title": "TextToAudioInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input text data",
10
  "type": "string"
11
  },
 
27
  }
28
  }
29
  },
30
+ "required": ["inputs"]
31
  }
packages/tasks/src/tasks/text-to-image/inference.ts CHANGED
@@ -11,7 +11,7 @@ export interface TextToImageInput {
11
  /**
12
  * The input text data (sometimes called "prompt"
13
  */
14
- data: string;
15
  /**
16
  * Additional inference parameters
17
  */
 
11
  /**
12
  * The input text data (sometimes called "prompt"
13
  */
14
+ inputs: string;
15
  /**
16
  * Additional inference parameters
17
  */
packages/tasks/src/tasks/text-to-image/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "TextToImageInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input text data (sometimes called \"prompt\"",
10
  "type": "string"
11
  },
@@ -26,7 +26,9 @@
26
  },
27
  "negativePrompt": {
28
  "type": "array",
29
- "items": { "type": "string" },
 
 
30
  "description": "One or several prompt to guide what NOT to include in image generation."
31
  },
32
  "numInferenceSteps": {
@@ -53,5 +55,5 @@
53
  }
54
  }
55
  },
56
- "required": ["data"]
57
  }
 
5
  "title": "TextToImageInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input text data (sometimes called \"prompt\"",
10
  "type": "string"
11
  },
 
26
  },
27
  "negativePrompt": {
28
  "type": "array",
29
+ "items": {
30
+ "type": "string"
31
+ },
32
  "description": "One or several prompt to guide what NOT to include in image generation."
33
  },
34
  "numInferenceSteps": {
 
55
  }
56
  }
57
  },
58
+ "required": ["inputs"]
59
  }
packages/tasks/src/tasks/text-to-speech/inference.ts CHANGED
@@ -13,7 +13,7 @@ export interface TextToSpeechInput {
13
  /**
14
  * The input text data
15
  */
16
- data: string;
17
  /**
18
  * Additional inference parameters
19
  */
 
13
  /**
14
  * The input text data
15
  */
16
+ inputs: string;
17
  /**
18
  * Additional inference parameters
19
  */
packages/tasks/src/tasks/text2text-generation/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface Text2TextGenerationInput {
10
  /**
11
  * The input text data
12
  */
13
- data: string;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The input text data
12
  */
13
+ inputs: string;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/text2text-generation/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "Text2TextGenerationInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input text data",
10
  "type": "string"
11
  },
@@ -51,5 +51,5 @@
51
  }
52
  }
53
  },
54
- "required": ["data"]
55
  }
 
5
  "title": "Text2TextGenerationInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input text data",
10
  "type": "string"
11
  },
 
51
  }
52
  }
53
  },
54
+ "required": ["inputs"]
55
  }
packages/tasks/src/tasks/token-classification/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface TokenClassificationInput {
10
  /**
11
  * The input text data
12
  */
13
- data: string;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The input text data
12
  */
13
+ inputs: string;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/token-classification/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "TokenClassificationInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input text data",
10
  "type": "string"
11
  },
@@ -61,5 +61,5 @@
61
  }
62
  }
63
  },
64
- "required": ["data"]
65
  }
 
5
  "title": "TokenClassificationInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input text data",
10
  "type": "string"
11
  },
 
61
  }
62
  }
63
  },
64
+ "required": ["inputs"]
65
  }
packages/tasks/src/tasks/translation/inference.ts CHANGED
@@ -13,7 +13,7 @@ export interface TranslationInput {
13
  /**
14
  * The input text data
15
  */
16
- data: string;
17
  /**
18
  * Additional inference parameters
19
  */
 
13
  /**
14
  * The input text data
15
  */
16
+ inputs: string;
17
  /**
18
  * Additional inference parameters
19
  */
packages/tasks/src/tasks/video-classification/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface VideoClassificationInput {
10
  /**
11
  * The input video data
12
  */
13
- data: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The input video data
12
  */
13
+ inputs: unknown;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/video-classification/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "VideoClassificationInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input video data"
10
  },
11
  "parameters": {
@@ -38,5 +38,5 @@
38
  }
39
  }
40
  },
41
- "required": ["data"]
42
  }
 
5
  "title": "VideoClassificationInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input video data"
10
  },
11
  "parameters": {
 
38
  }
39
  }
40
  },
41
+ "required": ["inputs"]
42
  }
packages/tasks/src/tasks/visual-question-answering/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface VisualQuestionAnsweringInput {
10
  /**
11
  * One (image, question) pair to answer
12
  */
13
- data: VisualQuestionAnsweringInputData;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * One (image, question) pair to answer
12
  */
13
+ inputs: VisualQuestionAnsweringInputData;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/visual-question-answering/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "VisualQuestionAnsweringInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "One (image, question) pair to answer",
10
  "type": "object",
11
  "title": "VisualQuestionAnsweringInputData",
@@ -37,5 +37,5 @@
37
  }
38
  }
39
  },
40
- "required": ["data"]
41
  }
 
5
  "title": "VisualQuestionAnsweringInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "One (image, question) pair to answer",
10
  "type": "object",
11
  "title": "VisualQuestionAnsweringInputData",
 
37
  }
38
  }
39
  },
40
+ "required": ["inputs"]
41
  }
packages/tasks/src/tasks/zero-shot-classification/inference.ts CHANGED
@@ -10,7 +10,7 @@ export interface ZeroShotClassificationInput {
10
  /**
11
  * The input text data, with candidate labels
12
  */
13
- data: ZeroShotClassificationInputData;
14
  /**
15
  * Additional inference parameters
16
  */
 
10
  /**
11
  * The input text data, with candidate labels
12
  */
13
+ inputs: ZeroShotClassificationInputData;
14
  /**
15
  * Additional inference parameters
16
  */
packages/tasks/src/tasks/zero-shot-classification/spec/input.json CHANGED
@@ -5,7 +5,7 @@
5
  "title": "ZeroShotClassificationInput",
6
  "type": "object",
7
  "properties": {
8
- "data": {
9
  "description": "The input text data, with candidate labels",
10
  "type": "object",
11
  "title": "ZeroShotClassificationInputData",
@@ -46,5 +46,5 @@
46
  }
47
  }
48
  },
49
- "required": ["data"]
50
  }
 
5
  "title": "ZeroShotClassificationInput",
6
  "type": "object",
7
  "properties": {
8
+ "inputs": {
9
  "description": "The input text data, with candidate labels",
10
  "type": "object",
11
  "title": "ZeroShotClassificationInputData",
 
46
  }
47
  }
48
  },
49
+ "required": ["inputs"]
50
  }