@huggingface/tasks 0.13.0-test → 0.13.0-test2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/dist/index.d.cts +4778 -0
  2. package/dist/index.d.ts +4778 -0
  3. package/package.json +2 -3
  4. package/dist/scripts/inference-codegen.d.ts +0 -2
  5. package/dist/scripts/inference-codegen.d.ts.map +0 -1
  6. package/dist/scripts/inference-tei-import.d.ts +0 -2
  7. package/dist/scripts/inference-tei-import.d.ts.map +0 -1
  8. package/dist/scripts/inference-tgi-import.d.ts +0 -2
  9. package/dist/scripts/inference-tgi-import.d.ts.map +0 -1
  10. package/dist/src/dataset-libraries.d.ts +0 -87
  11. package/dist/src/dataset-libraries.d.ts.map +0 -1
  12. package/dist/src/default-widget-inputs.d.ts +0 -6
  13. package/dist/src/default-widget-inputs.d.ts.map +0 -1
  14. package/dist/src/gguf.d.ts +0 -35
  15. package/dist/src/gguf.d.ts.map +0 -1
  16. package/dist/src/hardware.d.ts +0 -478
  17. package/dist/src/hardware.d.ts.map +0 -1
  18. package/dist/src/index.d.ts +0 -21
  19. package/dist/src/index.d.ts.map +0 -1
  20. package/dist/src/library-to-tasks.d.ts +0 -11
  21. package/dist/src/library-to-tasks.d.ts.map +0 -1
  22. package/dist/src/local-apps.d.ts +0 -195
  23. package/dist/src/local-apps.d.ts.map +0 -1
  24. package/dist/src/model-data.d.ts +0 -146
  25. package/dist/src/model-data.d.ts.map +0 -1
  26. package/dist/src/model-libraries-downloads.d.ts +0 -18
  27. package/dist/src/model-libraries-downloads.d.ts.map +0 -1
  28. package/dist/src/model-libraries-snippets.d.ts +0 -72
  29. package/dist/src/model-libraries-snippets.d.ts.map +0 -1
  30. package/dist/src/model-libraries.d.ts +0 -804
  31. package/dist/src/model-libraries.d.ts.map +0 -1
  32. package/dist/src/pipelines.d.ts +0 -425
  33. package/dist/src/pipelines.d.ts.map +0 -1
  34. package/dist/src/snippets/common.d.ts +0 -14
  35. package/dist/src/snippets/common.d.ts.map +0 -1
  36. package/dist/src/snippets/curl.d.ts +0 -17
  37. package/dist/src/snippets/curl.d.ts.map +0 -1
  38. package/dist/src/snippets/curl.spec.d.ts +0 -2
  39. package/dist/src/snippets/curl.spec.d.ts.map +0 -1
  40. package/dist/src/snippets/index.d.ts +0 -6
  41. package/dist/src/snippets/index.d.ts.map +0 -1
  42. package/dist/src/snippets/inputs.d.ts +0 -4
  43. package/dist/src/snippets/inputs.d.ts.map +0 -1
  44. package/dist/src/snippets/js.d.ts +0 -19
  45. package/dist/src/snippets/js.d.ts.map +0 -1
  46. package/dist/src/snippets/js.spec.d.ts +0 -2
  47. package/dist/src/snippets/js.spec.d.ts.map +0 -1
  48. package/dist/src/snippets/python.d.ts +0 -22
  49. package/dist/src/snippets/python.d.ts.map +0 -1
  50. package/dist/src/snippets/python.spec.d.ts +0 -2
  51. package/dist/src/snippets/python.spec.d.ts.map +0 -1
  52. package/dist/src/snippets/types.d.ts +0 -12
  53. package/dist/src/snippets/types.d.ts.map +0 -1
  54. package/dist/src/tasks/audio-classification/data.d.ts +0 -4
  55. package/dist/src/tasks/audio-classification/data.d.ts.map +0 -1
  56. package/dist/src/tasks/audio-classification/inference.d.ts +0 -53
  57. package/dist/src/tasks/audio-classification/inference.d.ts.map +0 -1
  58. package/dist/src/tasks/audio-to-audio/data.d.ts +0 -4
  59. package/dist/src/tasks/audio-to-audio/data.d.ts.map +0 -1
  60. package/dist/src/tasks/automatic-speech-recognition/data.d.ts +0 -4
  61. package/dist/src/tasks/automatic-speech-recognition/data.d.ts.map +0 -1
  62. package/dist/src/tasks/automatic-speech-recognition/inference.d.ts +0 -155
  63. package/dist/src/tasks/automatic-speech-recognition/inference.d.ts.map +0 -1
  64. package/dist/src/tasks/chat-completion/inference.d.ts +0 -291
  65. package/dist/src/tasks/chat-completion/inference.d.ts.map +0 -1
  66. package/dist/src/tasks/depth-estimation/data.d.ts +0 -4
  67. package/dist/src/tasks/depth-estimation/data.d.ts.map +0 -1
  68. package/dist/src/tasks/depth-estimation/inference.d.ts +0 -36
  69. package/dist/src/tasks/depth-estimation/inference.d.ts.map +0 -1
  70. package/dist/src/tasks/document-question-answering/data.d.ts +0 -4
  71. package/dist/src/tasks/document-question-answering/data.d.ts.map +0 -1
  72. package/dist/src/tasks/document-question-answering/inference.d.ts +0 -111
  73. package/dist/src/tasks/document-question-answering/inference.d.ts.map +0 -1
  74. package/dist/src/tasks/feature-extraction/data.d.ts +0 -4
  75. package/dist/src/tasks/feature-extraction/data.d.ts.map +0 -1
  76. package/dist/src/tasks/feature-extraction/inference.d.ts +0 -38
  77. package/dist/src/tasks/feature-extraction/inference.d.ts.map +0 -1
  78. package/dist/src/tasks/fill-mask/data.d.ts +0 -4
  79. package/dist/src/tasks/fill-mask/data.d.ts.map +0 -1
  80. package/dist/src/tasks/fill-mask/inference.d.ts +0 -63
  81. package/dist/src/tasks/fill-mask/inference.d.ts.map +0 -1
  82. package/dist/src/tasks/image-classification/data.d.ts +0 -4
  83. package/dist/src/tasks/image-classification/data.d.ts.map +0 -1
  84. package/dist/src/tasks/image-classification/inference.d.ts +0 -53
  85. package/dist/src/tasks/image-classification/inference.d.ts.map +0 -1
  86. package/dist/src/tasks/image-feature-extraction/data.d.ts +0 -4
  87. package/dist/src/tasks/image-feature-extraction/data.d.ts.map +0 -1
  88. package/dist/src/tasks/image-segmentation/data.d.ts +0 -4
  89. package/dist/src/tasks/image-segmentation/data.d.ts.map +0 -1
  90. package/dist/src/tasks/image-segmentation/inference.d.ts +0 -70
  91. package/dist/src/tasks/image-segmentation/inference.d.ts.map +0 -1
  92. package/dist/src/tasks/image-text-to-text/data.d.ts +0 -4
  93. package/dist/src/tasks/image-text-to-text/data.d.ts.map +0 -1
  94. package/dist/src/tasks/image-to-3d/data.d.ts +0 -4
  95. package/dist/src/tasks/image-to-3d/data.d.ts.map +0 -1
  96. package/dist/src/tasks/image-to-image/data.d.ts +0 -4
  97. package/dist/src/tasks/image-to-image/data.d.ts.map +0 -1
  98. package/dist/src/tasks/image-to-image/inference.d.ts +0 -65
  99. package/dist/src/tasks/image-to-image/inference.d.ts.map +0 -1
  100. package/dist/src/tasks/image-to-text/data.d.ts +0 -4
  101. package/dist/src/tasks/image-to-text/data.d.ts.map +0 -1
  102. package/dist/src/tasks/image-to-text/inference.d.ts +0 -139
  103. package/dist/src/tasks/image-to-text/inference.d.ts.map +0 -1
  104. package/dist/src/tasks/index.d.ts +0 -87
  105. package/dist/src/tasks/index.d.ts.map +0 -1
  106. package/dist/src/tasks/keypoint-detection/data.d.ts +0 -4
  107. package/dist/src/tasks/keypoint-detection/data.d.ts.map +0 -1
  108. package/dist/src/tasks/mask-generation/data.d.ts +0 -4
  109. package/dist/src/tasks/mask-generation/data.d.ts.map +0 -1
  110. package/dist/src/tasks/object-detection/data.d.ts +0 -4
  111. package/dist/src/tasks/object-detection/data.d.ts.map +0 -1
  112. package/dist/src/tasks/object-detection/inference.d.ts +0 -76
  113. package/dist/src/tasks/object-detection/inference.d.ts.map +0 -1
  114. package/dist/src/tasks/placeholder/data.d.ts +0 -4
  115. package/dist/src/tasks/placeholder/data.d.ts.map +0 -1
  116. package/dist/src/tasks/question-answering/data.d.ts +0 -4
  117. package/dist/src/tasks/question-answering/data.d.ts.map +0 -1
  118. package/dist/src/tasks/question-answering/inference.d.ts +0 -100
  119. package/dist/src/tasks/question-answering/inference.d.ts.map +0 -1
  120. package/dist/src/tasks/reinforcement-learning/data.d.ts +0 -4
  121. package/dist/src/tasks/reinforcement-learning/data.d.ts.map +0 -1
  122. package/dist/src/tasks/sentence-similarity/data.d.ts +0 -4
  123. package/dist/src/tasks/sentence-similarity/data.d.ts.map +0 -1
  124. package/dist/src/tasks/sentence-similarity/inference.d.ts +0 -32
  125. package/dist/src/tasks/sentence-similarity/inference.d.ts.map +0 -1
  126. package/dist/src/tasks/summarization/data.d.ts +0 -4
  127. package/dist/src/tasks/summarization/data.d.ts.map +0 -1
  128. package/dist/src/tasks/summarization/inference.d.ts +0 -56
  129. package/dist/src/tasks/summarization/inference.d.ts.map +0 -1
  130. package/dist/src/tasks/table-question-answering/data.d.ts +0 -4
  131. package/dist/src/tasks/table-question-answering/data.d.ts.map +0 -1
  132. package/dist/src/tasks/table-question-answering/inference.d.ts +0 -62
  133. package/dist/src/tasks/table-question-answering/inference.d.ts.map +0 -1
  134. package/dist/src/tasks/tabular-classification/data.d.ts +0 -4
  135. package/dist/src/tasks/tabular-classification/data.d.ts.map +0 -1
  136. package/dist/src/tasks/tabular-regression/data.d.ts +0 -4
  137. package/dist/src/tasks/tabular-regression/data.d.ts.map +0 -1
  138. package/dist/src/tasks/text-classification/data.d.ts +0 -4
  139. package/dist/src/tasks/text-classification/data.d.ts.map +0 -1
  140. package/dist/src/tasks/text-classification/inference.d.ts +0 -52
  141. package/dist/src/tasks/text-classification/inference.d.ts.map +0 -1
  142. package/dist/src/tasks/text-generation/data.d.ts +0 -4
  143. package/dist/src/tasks/text-generation/data.d.ts.map +0 -1
  144. package/dist/src/tasks/text-generation/inference.d.ts +0 -188
  145. package/dist/src/tasks/text-generation/inference.d.ts.map +0 -1
  146. package/dist/src/tasks/text-to-3d/data.d.ts +0 -4
  147. package/dist/src/tasks/text-to-3d/data.d.ts.map +0 -1
  148. package/dist/src/tasks/text-to-audio/inference.d.ts +0 -139
  149. package/dist/src/tasks/text-to-audio/inference.d.ts.map +0 -1
  150. package/dist/src/tasks/text-to-image/data.d.ts +0 -4
  151. package/dist/src/tasks/text-to-image/data.d.ts.map +0 -1
  152. package/dist/src/tasks/text-to-image/inference.d.ts +0 -72
  153. package/dist/src/tasks/text-to-image/inference.d.ts.map +0 -1
  154. package/dist/src/tasks/text-to-speech/data.d.ts +0 -4
  155. package/dist/src/tasks/text-to-speech/data.d.ts.map +0 -1
  156. package/dist/src/tasks/text-to-speech/inference.d.ts +0 -141
  157. package/dist/src/tasks/text-to-speech/inference.d.ts.map +0 -1
  158. package/dist/src/tasks/text-to-video/data.d.ts +0 -4
  159. package/dist/src/tasks/text-to-video/data.d.ts.map +0 -1
  160. package/dist/src/tasks/text2text-generation/inference.d.ts +0 -54
  161. package/dist/src/tasks/text2text-generation/inference.d.ts.map +0 -1
  162. package/dist/src/tasks/token-classification/data.d.ts +0 -4
  163. package/dist/src/tasks/token-classification/data.d.ts.map +0 -1
  164. package/dist/src/tasks/token-classification/inference.d.ts +0 -86
  165. package/dist/src/tasks/token-classification/inference.d.ts.map +0 -1
  166. package/dist/src/tasks/translation/data.d.ts +0 -4
  167. package/dist/src/tasks/translation/data.d.ts.map +0 -1
  168. package/dist/src/tasks/translation/inference.d.ts +0 -66
  169. package/dist/src/tasks/translation/inference.d.ts.map +0 -1
  170. package/dist/src/tasks/unconditional-image-generation/data.d.ts +0 -4
  171. package/dist/src/tasks/unconditional-image-generation/data.d.ts.map +0 -1
  172. package/dist/src/tasks/video-classification/data.d.ts +0 -4
  173. package/dist/src/tasks/video-classification/data.d.ts.map +0 -1
  174. package/dist/src/tasks/video-classification/inference.d.ts +0 -60
  175. package/dist/src/tasks/video-classification/inference.d.ts.map +0 -1
  176. package/dist/src/tasks/video-text-to-text/data.d.ts +0 -4
  177. package/dist/src/tasks/video-text-to-text/data.d.ts.map +0 -1
  178. package/dist/src/tasks/visual-question-answering/data.d.ts +0 -4
  179. package/dist/src/tasks/visual-question-answering/data.d.ts.map +0 -1
  180. package/dist/src/tasks/visual-question-answering/inference.d.ts +0 -63
  181. package/dist/src/tasks/visual-question-answering/inference.d.ts.map +0 -1
  182. package/dist/src/tasks/zero-shot-classification/data.d.ts +0 -4
  183. package/dist/src/tasks/zero-shot-classification/data.d.ts.map +0 -1
  184. package/dist/src/tasks/zero-shot-classification/inference.d.ts +0 -68
  185. package/dist/src/tasks/zero-shot-classification/inference.d.ts.map +0 -1
  186. package/dist/src/tasks/zero-shot-image-classification/data.d.ts +0 -4
  187. package/dist/src/tasks/zero-shot-image-classification/data.d.ts.map +0 -1
  188. package/dist/src/tasks/zero-shot-image-classification/inference.d.ts +0 -62
  189. package/dist/src/tasks/zero-shot-image-classification/inference.d.ts.map +0 -1
  190. package/dist/src/tasks/zero-shot-object-detection/data.d.ts +0 -4
  191. package/dist/src/tasks/zero-shot-object-detection/data.d.ts.map +0 -1
  192. package/dist/src/tasks/zero-shot-object-detection/inference.d.ts +0 -67
  193. package/dist/src/tasks/zero-shot-object-detection/inference.d.ts.map +0 -1
  194. package/dist/src/tokenizer-data.d.ts +0 -26
  195. package/dist/src/tokenizer-data.d.ts.map +0 -1
  196. package/dist/src/widget-example.d.ts +0 -83
  197. package/dist/src/widget-example.d.ts.map +0 -1
@@ -1,4 +0,0 @@
1
- import type { TaskDataCustom } from "..";
2
- declare const taskData: TaskDataCustom;
3
- export default taskData;
4
- //# sourceMappingURL=data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/object-detection/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAiFf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,76 +0,0 @@
1
- /**
2
- * Inference code generated from the JSON schema spec in ./spec
3
- *
4
- * Using src/scripts/inference-codegen
5
- */
6
- /**
7
- * Inputs for Object Detection inference
8
- */
9
- export interface ObjectDetectionInput {
10
- /**
11
- * The input image data as a base64-encoded string. If no `parameters` are provided, you can
12
- * also provide the image data as a raw bytes payload.
13
- */
14
- inputs: string;
15
- /**
16
- * Additional inference parameters
17
- */
18
- parameters?: ObjectDetectionParameters;
19
- [property: string]: unknown;
20
- }
21
- /**
22
- * Additional inference parameters
23
- *
24
- * Additional inference parameters for Object Detection
25
- */
26
- export interface ObjectDetectionParameters {
27
- /**
28
- * The probability necessary to make a prediction.
29
- */
30
- threshold?: number;
31
- [property: string]: unknown;
32
- }
33
- /**
34
- * The predicted bounding box. Coordinates are relative to the top left corner of the input
35
- * image.
36
- */
37
- export interface BoundingBox {
38
- /**
39
- * The x-coordinate of the bottom-right corner of the bounding box.
40
- */
41
- xmax: number;
42
- /**
43
- * The x-coordinate of the top-left corner of the bounding box.
44
- */
45
- xmin: number;
46
- /**
47
- * The y-coordinate of the bottom-right corner of the bounding box.
48
- */
49
- ymax: number;
50
- /**
51
- * The y-coordinate of the top-left corner of the bounding box.
52
- */
53
- ymin: number;
54
- [property: string]: unknown;
55
- }
56
- export type ObjectDetectionOutput = ObjectDetectionOutputElement[];
57
- /**
58
- * Outputs of inference for the Object Detection task
59
- */
60
- export interface ObjectDetectionOutputElement {
61
- /**
62
- * The predicted bounding box. Coordinates are relative to the top left corner of the input
63
- * image.
64
- */
65
- box: BoundingBox;
66
- /**
67
- * The predicted label for the bounding box.
68
- */
69
- label: string;
70
- /**
71
- * The associated score / probability.
72
- */
73
- score: number;
74
- [property: string]: unknown;
75
- }
76
- //# sourceMappingURL=inference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/object-detection/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACzC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,qBAAqB,GAAG,4BAA4B,EAAE,CAAC;AACnE;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC5C;;;OAGG;IACH,GAAG,EAAE,WAAW,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -1,4 +0,0 @@
1
- import type { TaskDataCustom } from "..";
2
- declare const taskData: TaskDataCustom;
3
- export default taskData;
4
- //# sourceMappingURL=data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/placeholder/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAgBf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { TaskDataCustom } from "..";
2
- declare const taskData: TaskDataCustom;
3
- export default taskData;
4
- //# sourceMappingURL=data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/question-answering/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAsEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,100 +0,0 @@
1
- /**
2
- * Inference code generated from the JSON schema spec in ./spec
3
- *
4
- * Using src/scripts/inference-codegen
5
- */
6
- /**
7
- * Inputs for Question Answering inference
8
- */
9
- export interface QuestionAnsweringInput {
10
- /**
11
- * One (context, question) pair to answer
12
- */
13
- inputs: QuestionAnsweringInputData;
14
- /**
15
- * Additional inference parameters
16
- */
17
- parameters?: QuestionAnsweringParameters;
18
- [property: string]: unknown;
19
- }
20
- /**
21
- * One (context, question) pair to answer
22
- */
23
- export interface QuestionAnsweringInputData {
24
- /**
25
- * The context to be used for answering the question
26
- */
27
- context: string;
28
- /**
29
- * The question to be answered
30
- */
31
- question: string;
32
- [property: string]: unknown;
33
- }
34
- /**
35
- * Additional inference parameters
36
- *
37
- * Additional inference parameters for Question Answering
38
- */
39
- export interface QuestionAnsweringParameters {
40
- /**
41
- * Attempts to align the answer to real words. Improves quality on space separated
42
- * languages. Might hurt on non-space-separated languages (like Japanese or Chinese)
43
- */
44
- align_to_words?: boolean;
45
- /**
46
- * If the context is too long to fit with the question for the model, it will be split in
47
- * several chunks with some overlap. This argument controls the size of that overlap.
48
- */
49
- doc_stride?: number;
50
- /**
51
- * Whether to accept impossible as an answer.
52
- */
53
- handle_impossible_answer?: boolean;
54
- /**
55
- * The maximum length of predicted answers (e.g., only answers with a shorter length are
56
- * considered).
57
- */
58
- max_answer_len?: number;
59
- /**
60
- * The maximum length of the question after tokenization. It will be truncated if needed.
61
- */
62
- max_question_len?: number;
63
- /**
64
- * The maximum length of the total sentence (context + question) in tokens of each chunk
65
- * passed to the model. The context will be split in several chunks (using docStride as
66
- * overlap) if needed.
67
- */
68
- max_seq_len?: number;
69
- /**
70
- * The number of answers to return (will be chosen by order of likelihood). Note that we
71
- * return less than topk answers if there are not enough options available within the
72
- * context.
73
- */
74
- top_k?: number;
75
- [property: string]: unknown;
76
- }
77
- export type QuestionAnsweringOutput = QuestionAnsweringOutputElement[];
78
- /**
79
- * Outputs of inference for the Question Answering task
80
- */
81
- export interface QuestionAnsweringOutputElement {
82
- /**
83
- * The answer to the question.
84
- */
85
- answer: string;
86
- /**
87
- * The character position in the input where the answer ends.
88
- */
89
- end: number;
90
- /**
91
- * The probability associated to the answer.
92
- */
93
- score: number;
94
- /**
95
- * The character position in the input where the answer begins.
96
- */
97
- start: number;
98
- [property: string]: unknown;
99
- }
100
- //# sourceMappingURL=inference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/question-answering/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC;;OAEG;IACH,MAAM,EAAE,0BAA0B,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,2BAA2B,CAAC;IACzC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC3C;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,uBAAuB,GAAG,8BAA8B,EAAE,CAAC;AACvE;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC9C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -1,4 +0,0 @@
1
- import type { TaskDataCustom } from "..";
2
- declare const taskData: TaskDataCustom;
3
- export default taskData;
4
- //# sourceMappingURL=data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/reinforcement-learning/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAsEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { TaskDataCustom } from "..";
2
- declare const taskData: TaskDataCustom;
3
- export default taskData;
4
- //# sourceMappingURL=data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/sentence-similarity/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAgGf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,32 +0,0 @@
1
- /**
2
- * Inference code generated from the JSON schema spec in ./spec
3
- *
4
- * Using src/scripts/inference-codegen
5
- */
6
- export type SentenceSimilarityOutput = number[];
7
- /**
8
- * Inputs for Sentence similarity inference
9
- */
10
- export interface SentenceSimilarityInput {
11
- inputs: SentenceSimilarityInputData;
12
- /**
13
- * Additional inference parameters
14
- */
15
- parameters?: {
16
- [key: string]: unknown;
17
- };
18
- [property: string]: unknown;
19
- }
20
- export interface SentenceSimilarityInputData {
21
- /**
22
- * A list of strings which will be compared against the source_sentence.
23
- */
24
- sentences: string[];
25
- /**
26
- * The string that you wish to compare the other strings with. This can be a phrase,
27
- * sentence, or longer passage, depending on the model being used.
28
- */
29
- sourceSentence: string;
30
- [property: string]: unknown;
31
- }
32
- //# sourceMappingURL=inference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/sentence-similarity/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,wBAAwB,GAAG,MAAM,EAAE,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACvC,MAAM,EAAE,2BAA2B,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACxC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA2B;IAC3C;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -1,4 +0,0 @@
1
- import type { TaskDataCustom } from "..";
2
- declare const taskData: TaskDataCustom;
3
- export default taskData;
4
- //# sourceMappingURL=data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/summarization/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAuEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,56 +0,0 @@
1
- /**
2
- * Inference code generated from the JSON schema spec in ./spec
3
- *
4
- * Using src/scripts/inference-codegen
5
- */
6
- /**
7
- * Inputs for Summarization inference
8
- */
9
- export interface SummarizationInput {
10
- /**
11
- * The input text to summarize.
12
- */
13
- inputs: string;
14
- /**
15
- * Additional inference parameters.
16
- */
17
- parameters?: SummarizationParameters;
18
- [property: string]: unknown;
19
- }
20
- /**
21
- * Additional inference parameters.
22
- *
23
- * Additional inference parameters for summarization.
24
- */
25
- export interface SummarizationParameters {
26
- /**
27
- * Whether to clean up the potential extra spaces in the text output.
28
- */
29
- clean_up_tokenization_spaces?: boolean;
30
- /**
31
- * Additional parametrization of the text generation algorithm.
32
- */
33
- generate_parameters?: {
34
- [key: string]: unknown;
35
- };
36
- /**
37
- * The truncation strategy to use.
38
- */
39
- truncation?: SummarizationTruncationStrategy;
40
- [property: string]: unknown;
41
- }
42
- /**
43
- * The truncation strategy to use.
44
- */
45
- export type SummarizationTruncationStrategy = "do_not_truncate" | "longest_first" | "only_first" | "only_second";
46
- /**
47
- * Outputs of inference for the Summarization task
48
- */
49
- export interface SummarizationOutput {
50
- /**
51
- * The summarized text.
52
- */
53
- summary_text: string;
54
- [property: string]: unknown;
55
- }
56
- //# sourceMappingURL=inference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/summarization/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACvC;;OAEG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC;;OAEG;IACH,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACjD;;OAEG;IACH,UAAU,CAAC,EAAE,+BAA+B,CAAC;IAC7C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,GAAG,eAAe,GAAG,YAAY,GAAG,aAAa,CAAC;AAEjH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -1,4 +0,0 @@
1
- import type { TaskDataCustom } from "..";
2
- declare const taskData: TaskDataCustom;
3
- export default taskData;
4
- //# sourceMappingURL=data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/table-question-answering/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAsDf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,62 +0,0 @@
1
- /**
2
- * Inference code generated from the JSON schema spec in ./spec
3
- *
4
- * Using src/scripts/inference-codegen
5
- */
6
- /**
7
- * Inputs for Table Question Answering inference
8
- */
9
- export interface TableQuestionAnsweringInput {
10
- /**
11
- * One (table, question) pair to answer
12
- */
13
- inputs: TableQuestionAnsweringInputData;
14
- /**
15
- * Additional inference parameters
16
- */
17
- parameters?: {
18
- [key: string]: unknown;
19
- };
20
- [property: string]: unknown;
21
- }
22
- /**
23
- * One (table, question) pair to answer
24
- */
25
- export interface TableQuestionAnsweringInputData {
26
- /**
27
- * The question to be answered about the table
28
- */
29
- question: string;
30
- /**
31
- * The table to serve as context for the questions
32
- */
33
- table: {
34
- [key: string]: string[];
35
- };
36
- [property: string]: unknown;
37
- }
38
- export type TableQuestionAnsweringOutput = TableQuestionAnsweringOutputElement[];
39
- /**
40
- * Outputs of inference for the Table Question Answering task
41
- */
42
- export interface TableQuestionAnsweringOutputElement {
43
- /**
44
- * If the model has an aggregator, this returns the aggregator.
45
- */
46
- aggregator?: string;
47
- /**
48
- * The answer of the question given the table. If there is an aggregator, the answer will be
49
- * preceded by `AGGREGATOR >`.
50
- */
51
- answer: string;
52
- /**
53
- * List of strings made up of the answer cell values.
54
- */
55
- cells: string[];
56
- /**
57
- * Coordinates of the cells of the answers.
58
- */
59
- coordinates: Array<number[]>;
60
- [property: string]: unknown;
61
- }
62
- //# sourceMappingURL=inference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/table-question-answering/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC3C;;OAEG;IACH,MAAM,EAAE,+BAA+B,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE;QACZ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACvB,CAAC;IACF,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC/C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;KACxB,CAAC;IACF,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,4BAA4B,GAAG,mCAAmC,EAAE,CAAC;AACjF;;GAEG;AACH,MAAM,WAAW,mCAAmC;IACnD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IAC7B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -1,4 +0,0 @@
1
- import type { TaskDataCustom } from "..";
2
- declare const taskData: TaskDataCustom;
3
- export default taskData;
4
- //# sourceMappingURL=data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/tabular-classification/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA+Df,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { TaskDataCustom } from "..";
2
- declare const taskData: TaskDataCustom;
3
- export default taskData;
4
- //# sourceMappingURL=data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/tabular-regression/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAoDf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { TaskDataCustom } from "..";
2
- declare const taskData: TaskDataCustom;
3
- export default taskData;
4
- //# sourceMappingURL=data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/text-classification/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAkGf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,52 +0,0 @@
1
- /**
2
- * Inference code generated from the JSON schema spec in ./spec
3
- *
4
- * Using src/scripts/inference-codegen
5
- */
6
- /**
7
- * Inputs for Text Classification inference
8
- */
9
- export interface TextClassificationInput {
10
- /**
11
- * The text to classify
12
- */
13
- inputs: string;
14
- /**
15
- * Additional inference parameters
16
- */
17
- parameters?: TextClassificationParameters;
18
- [property: string]: unknown;
19
- }
20
- /**
21
- * Additional inference parameters
22
- *
23
- * Additional inference parameters for Text Classification
24
- */
25
- export interface TextClassificationParameters {
26
- function_to_apply?: ClassificationOutputTransform;
27
- /**
28
- * When specified, limits the output to the top K most probable classes.
29
- */
30
- top_k?: number;
31
- [property: string]: unknown;
32
- }
33
- /**
34
- * The function to apply to the model outputs in order to retrieve the scores.
35
- */
36
- export type ClassificationOutputTransform = "sigmoid" | "softmax" | "none";
37
- export type TextClassificationOutput = TextClassificationOutputElement[];
38
- /**
39
- * Outputs of inference for the Text Classification task
40
- */
41
- export interface TextClassificationOutputElement {
42
- /**
43
- * The predicted class label.
44
- */
45
- label: string;
46
- /**
47
- * The corresponding probability.
48
- */
49
- score: number;
50
- [property: string]: unknown;
51
- }
52
- //# sourceMappingURL=inference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/text-classification/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,4BAA4B,CAAC;IAC1C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC5C,iBAAiB,CAAC,EAAE,6BAA6B,CAAC;IAClD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAC3E,MAAM,MAAM,wBAAwB,GAAG,+BAA+B,EAAE,CAAC;AACzE;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC/C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -1,4 +0,0 @@
1
- import type { TaskDataCustom } from "..";
2
- declare const taskData: TaskDataCustom;
3
- export default taskData;
4
- //# sourceMappingURL=data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/text-generation/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA6Gf,CAAC;AAEF,eAAe,QAAQ,CAAC"}