@huggingface/tasks 0.12.30 → 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 (202) hide show
  1. package/dist/index.cjs +26 -3
  2. package/dist/index.d.cts +4778 -0
  3. package/dist/index.d.ts +4778 -0
  4. package/dist/index.js +26 -3
  5. package/package.json +2 -4
  6. package/src/model-libraries-snippets.ts +17 -0
  7. package/src/model-libraries.ts +8 -1
  8. package/src/snippets/js.ts +2 -2
  9. package/dist/scripts/inference-codegen.d.ts +0 -2
  10. package/dist/scripts/inference-codegen.d.ts.map +0 -1
  11. package/dist/scripts/inference-tei-import.d.ts +0 -2
  12. package/dist/scripts/inference-tei-import.d.ts.map +0 -1
  13. package/dist/scripts/inference-tgi-import.d.ts +0 -2
  14. package/dist/scripts/inference-tgi-import.d.ts.map +0 -1
  15. package/dist/src/dataset-libraries.d.ts +0 -87
  16. package/dist/src/dataset-libraries.d.ts.map +0 -1
  17. package/dist/src/default-widget-inputs.d.ts +0 -6
  18. package/dist/src/default-widget-inputs.d.ts.map +0 -1
  19. package/dist/src/gguf.d.ts +0 -35
  20. package/dist/src/gguf.d.ts.map +0 -1
  21. package/dist/src/hardware.d.ts +0 -478
  22. package/dist/src/hardware.d.ts.map +0 -1
  23. package/dist/src/index.d.ts +0 -21
  24. package/dist/src/index.d.ts.map +0 -1
  25. package/dist/src/library-to-tasks.d.ts +0 -11
  26. package/dist/src/library-to-tasks.d.ts.map +0 -1
  27. package/dist/src/local-apps.d.ts +0 -195
  28. package/dist/src/local-apps.d.ts.map +0 -1
  29. package/dist/src/model-data.d.ts +0 -146
  30. package/dist/src/model-data.d.ts.map +0 -1
  31. package/dist/src/model-libraries-downloads.d.ts +0 -18
  32. package/dist/src/model-libraries-downloads.d.ts.map +0 -1
  33. package/dist/src/model-libraries-snippets.d.ts +0 -71
  34. package/dist/src/model-libraries-snippets.d.ts.map +0 -1
  35. package/dist/src/model-libraries.d.ts +0 -797
  36. package/dist/src/model-libraries.d.ts.map +0 -1
  37. package/dist/src/pipelines.d.ts +0 -425
  38. package/dist/src/pipelines.d.ts.map +0 -1
  39. package/dist/src/snippets/common.d.ts +0 -14
  40. package/dist/src/snippets/common.d.ts.map +0 -1
  41. package/dist/src/snippets/curl.d.ts +0 -17
  42. package/dist/src/snippets/curl.d.ts.map +0 -1
  43. package/dist/src/snippets/curl.spec.d.ts +0 -2
  44. package/dist/src/snippets/curl.spec.d.ts.map +0 -1
  45. package/dist/src/snippets/index.d.ts +0 -6
  46. package/dist/src/snippets/index.d.ts.map +0 -1
  47. package/dist/src/snippets/inputs.d.ts +0 -4
  48. package/dist/src/snippets/inputs.d.ts.map +0 -1
  49. package/dist/src/snippets/js.d.ts +0 -19
  50. package/dist/src/snippets/js.d.ts.map +0 -1
  51. package/dist/src/snippets/js.spec.d.ts +0 -2
  52. package/dist/src/snippets/js.spec.d.ts.map +0 -1
  53. package/dist/src/snippets/python.d.ts +0 -22
  54. package/dist/src/snippets/python.d.ts.map +0 -1
  55. package/dist/src/snippets/python.spec.d.ts +0 -2
  56. package/dist/src/snippets/python.spec.d.ts.map +0 -1
  57. package/dist/src/snippets/types.d.ts +0 -12
  58. package/dist/src/snippets/types.d.ts.map +0 -1
  59. package/dist/src/tasks/audio-classification/data.d.ts +0 -4
  60. package/dist/src/tasks/audio-classification/data.d.ts.map +0 -1
  61. package/dist/src/tasks/audio-classification/inference.d.ts +0 -53
  62. package/dist/src/tasks/audio-classification/inference.d.ts.map +0 -1
  63. package/dist/src/tasks/audio-to-audio/data.d.ts +0 -4
  64. package/dist/src/tasks/audio-to-audio/data.d.ts.map +0 -1
  65. package/dist/src/tasks/automatic-speech-recognition/data.d.ts +0 -4
  66. package/dist/src/tasks/automatic-speech-recognition/data.d.ts.map +0 -1
  67. package/dist/src/tasks/automatic-speech-recognition/inference.d.ts +0 -155
  68. package/dist/src/tasks/automatic-speech-recognition/inference.d.ts.map +0 -1
  69. package/dist/src/tasks/chat-completion/inference.d.ts +0 -291
  70. package/dist/src/tasks/chat-completion/inference.d.ts.map +0 -1
  71. package/dist/src/tasks/depth-estimation/data.d.ts +0 -4
  72. package/dist/src/tasks/depth-estimation/data.d.ts.map +0 -1
  73. package/dist/src/tasks/depth-estimation/inference.d.ts +0 -36
  74. package/dist/src/tasks/depth-estimation/inference.d.ts.map +0 -1
  75. package/dist/src/tasks/document-question-answering/data.d.ts +0 -4
  76. package/dist/src/tasks/document-question-answering/data.d.ts.map +0 -1
  77. package/dist/src/tasks/document-question-answering/inference.d.ts +0 -111
  78. package/dist/src/tasks/document-question-answering/inference.d.ts.map +0 -1
  79. package/dist/src/tasks/feature-extraction/data.d.ts +0 -4
  80. package/dist/src/tasks/feature-extraction/data.d.ts.map +0 -1
  81. package/dist/src/tasks/feature-extraction/inference.d.ts +0 -38
  82. package/dist/src/tasks/feature-extraction/inference.d.ts.map +0 -1
  83. package/dist/src/tasks/fill-mask/data.d.ts +0 -4
  84. package/dist/src/tasks/fill-mask/data.d.ts.map +0 -1
  85. package/dist/src/tasks/fill-mask/inference.d.ts +0 -63
  86. package/dist/src/tasks/fill-mask/inference.d.ts.map +0 -1
  87. package/dist/src/tasks/image-classification/data.d.ts +0 -4
  88. package/dist/src/tasks/image-classification/data.d.ts.map +0 -1
  89. package/dist/src/tasks/image-classification/inference.d.ts +0 -53
  90. package/dist/src/tasks/image-classification/inference.d.ts.map +0 -1
  91. package/dist/src/tasks/image-feature-extraction/data.d.ts +0 -4
  92. package/dist/src/tasks/image-feature-extraction/data.d.ts.map +0 -1
  93. package/dist/src/tasks/image-segmentation/data.d.ts +0 -4
  94. package/dist/src/tasks/image-segmentation/data.d.ts.map +0 -1
  95. package/dist/src/tasks/image-segmentation/inference.d.ts +0 -70
  96. package/dist/src/tasks/image-segmentation/inference.d.ts.map +0 -1
  97. package/dist/src/tasks/image-text-to-text/data.d.ts +0 -4
  98. package/dist/src/tasks/image-text-to-text/data.d.ts.map +0 -1
  99. package/dist/src/tasks/image-to-3d/data.d.ts +0 -4
  100. package/dist/src/tasks/image-to-3d/data.d.ts.map +0 -1
  101. package/dist/src/tasks/image-to-image/data.d.ts +0 -4
  102. package/dist/src/tasks/image-to-image/data.d.ts.map +0 -1
  103. package/dist/src/tasks/image-to-image/inference.d.ts +0 -65
  104. package/dist/src/tasks/image-to-image/inference.d.ts.map +0 -1
  105. package/dist/src/tasks/image-to-text/data.d.ts +0 -4
  106. package/dist/src/tasks/image-to-text/data.d.ts.map +0 -1
  107. package/dist/src/tasks/image-to-text/inference.d.ts +0 -139
  108. package/dist/src/tasks/image-to-text/inference.d.ts.map +0 -1
  109. package/dist/src/tasks/index.d.ts +0 -87
  110. package/dist/src/tasks/index.d.ts.map +0 -1
  111. package/dist/src/tasks/keypoint-detection/data.d.ts +0 -4
  112. package/dist/src/tasks/keypoint-detection/data.d.ts.map +0 -1
  113. package/dist/src/tasks/mask-generation/data.d.ts +0 -4
  114. package/dist/src/tasks/mask-generation/data.d.ts.map +0 -1
  115. package/dist/src/tasks/object-detection/data.d.ts +0 -4
  116. package/dist/src/tasks/object-detection/data.d.ts.map +0 -1
  117. package/dist/src/tasks/object-detection/inference.d.ts +0 -76
  118. package/dist/src/tasks/object-detection/inference.d.ts.map +0 -1
  119. package/dist/src/tasks/placeholder/data.d.ts +0 -4
  120. package/dist/src/tasks/placeholder/data.d.ts.map +0 -1
  121. package/dist/src/tasks/question-answering/data.d.ts +0 -4
  122. package/dist/src/tasks/question-answering/data.d.ts.map +0 -1
  123. package/dist/src/tasks/question-answering/inference.d.ts +0 -100
  124. package/dist/src/tasks/question-answering/inference.d.ts.map +0 -1
  125. package/dist/src/tasks/reinforcement-learning/data.d.ts +0 -4
  126. package/dist/src/tasks/reinforcement-learning/data.d.ts.map +0 -1
  127. package/dist/src/tasks/sentence-similarity/data.d.ts +0 -4
  128. package/dist/src/tasks/sentence-similarity/data.d.ts.map +0 -1
  129. package/dist/src/tasks/sentence-similarity/inference.d.ts +0 -32
  130. package/dist/src/tasks/sentence-similarity/inference.d.ts.map +0 -1
  131. package/dist/src/tasks/summarization/data.d.ts +0 -4
  132. package/dist/src/tasks/summarization/data.d.ts.map +0 -1
  133. package/dist/src/tasks/summarization/inference.d.ts +0 -56
  134. package/dist/src/tasks/summarization/inference.d.ts.map +0 -1
  135. package/dist/src/tasks/table-question-answering/data.d.ts +0 -4
  136. package/dist/src/tasks/table-question-answering/data.d.ts.map +0 -1
  137. package/dist/src/tasks/table-question-answering/inference.d.ts +0 -62
  138. package/dist/src/tasks/table-question-answering/inference.d.ts.map +0 -1
  139. package/dist/src/tasks/tabular-classification/data.d.ts +0 -4
  140. package/dist/src/tasks/tabular-classification/data.d.ts.map +0 -1
  141. package/dist/src/tasks/tabular-regression/data.d.ts +0 -4
  142. package/dist/src/tasks/tabular-regression/data.d.ts.map +0 -1
  143. package/dist/src/tasks/text-classification/data.d.ts +0 -4
  144. package/dist/src/tasks/text-classification/data.d.ts.map +0 -1
  145. package/dist/src/tasks/text-classification/inference.d.ts +0 -52
  146. package/dist/src/tasks/text-classification/inference.d.ts.map +0 -1
  147. package/dist/src/tasks/text-generation/data.d.ts +0 -4
  148. package/dist/src/tasks/text-generation/data.d.ts.map +0 -1
  149. package/dist/src/tasks/text-generation/inference.d.ts +0 -188
  150. package/dist/src/tasks/text-generation/inference.d.ts.map +0 -1
  151. package/dist/src/tasks/text-to-3d/data.d.ts +0 -4
  152. package/dist/src/tasks/text-to-3d/data.d.ts.map +0 -1
  153. package/dist/src/tasks/text-to-audio/inference.d.ts +0 -139
  154. package/dist/src/tasks/text-to-audio/inference.d.ts.map +0 -1
  155. package/dist/src/tasks/text-to-image/data.d.ts +0 -4
  156. package/dist/src/tasks/text-to-image/data.d.ts.map +0 -1
  157. package/dist/src/tasks/text-to-image/inference.d.ts +0 -72
  158. package/dist/src/tasks/text-to-image/inference.d.ts.map +0 -1
  159. package/dist/src/tasks/text-to-speech/data.d.ts +0 -4
  160. package/dist/src/tasks/text-to-speech/data.d.ts.map +0 -1
  161. package/dist/src/tasks/text-to-speech/inference.d.ts +0 -141
  162. package/dist/src/tasks/text-to-speech/inference.d.ts.map +0 -1
  163. package/dist/src/tasks/text-to-video/data.d.ts +0 -4
  164. package/dist/src/tasks/text-to-video/data.d.ts.map +0 -1
  165. package/dist/src/tasks/text2text-generation/inference.d.ts +0 -54
  166. package/dist/src/tasks/text2text-generation/inference.d.ts.map +0 -1
  167. package/dist/src/tasks/token-classification/data.d.ts +0 -4
  168. package/dist/src/tasks/token-classification/data.d.ts.map +0 -1
  169. package/dist/src/tasks/token-classification/inference.d.ts +0 -86
  170. package/dist/src/tasks/token-classification/inference.d.ts.map +0 -1
  171. package/dist/src/tasks/translation/data.d.ts +0 -4
  172. package/dist/src/tasks/translation/data.d.ts.map +0 -1
  173. package/dist/src/tasks/translation/inference.d.ts +0 -66
  174. package/dist/src/tasks/translation/inference.d.ts.map +0 -1
  175. package/dist/src/tasks/unconditional-image-generation/data.d.ts +0 -4
  176. package/dist/src/tasks/unconditional-image-generation/data.d.ts.map +0 -1
  177. package/dist/src/tasks/video-classification/data.d.ts +0 -4
  178. package/dist/src/tasks/video-classification/data.d.ts.map +0 -1
  179. package/dist/src/tasks/video-classification/inference.d.ts +0 -60
  180. package/dist/src/tasks/video-classification/inference.d.ts.map +0 -1
  181. package/dist/src/tasks/video-text-to-text/data.d.ts +0 -4
  182. package/dist/src/tasks/video-text-to-text/data.d.ts.map +0 -1
  183. package/dist/src/tasks/visual-question-answering/data.d.ts +0 -4
  184. package/dist/src/tasks/visual-question-answering/data.d.ts.map +0 -1
  185. package/dist/src/tasks/visual-question-answering/inference.d.ts +0 -63
  186. package/dist/src/tasks/visual-question-answering/inference.d.ts.map +0 -1
  187. package/dist/src/tasks/zero-shot-classification/data.d.ts +0 -4
  188. package/dist/src/tasks/zero-shot-classification/data.d.ts.map +0 -1
  189. package/dist/src/tasks/zero-shot-classification/inference.d.ts +0 -68
  190. package/dist/src/tasks/zero-shot-classification/inference.d.ts.map +0 -1
  191. package/dist/src/tasks/zero-shot-image-classification/data.d.ts +0 -4
  192. package/dist/src/tasks/zero-shot-image-classification/data.d.ts.map +0 -1
  193. package/dist/src/tasks/zero-shot-image-classification/inference.d.ts +0 -62
  194. package/dist/src/tasks/zero-shot-image-classification/inference.d.ts.map +0 -1
  195. package/dist/src/tasks/zero-shot-object-detection/data.d.ts +0 -4
  196. package/dist/src/tasks/zero-shot-object-detection/data.d.ts.map +0 -1
  197. package/dist/src/tasks/zero-shot-object-detection/inference.d.ts +0 -67
  198. package/dist/src/tasks/zero-shot-object-detection/inference.d.ts.map +0 -1
  199. package/dist/src/tokenizer-data.d.ts +0 -26
  200. package/dist/src/tokenizer-data.d.ts.map +0 -1
  201. package/dist/src/widget-example.d.ts +0 -83
  202. package/dist/src/widget-example.d.ts.map +0 -1
@@ -1,38 +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 FeatureExtractionOutput = Array<number[]>;
7
- /**
8
- * Feature Extraction Input.
9
- *
10
- * Auto-generated from TEI specs.
11
- * For more details, check out
12
- * https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/scripts/inference-tei-import.ts.
13
- */
14
- export interface FeatureExtractionInput {
15
- /**
16
- * The text to embed.
17
- */
18
- inputs: string;
19
- normalize?: boolean;
20
- /**
21
- * The name of the prompt that should be used by for encoding. If not set, no prompt
22
- * will be applied.
23
- *
24
- * Must be a key in the `Sentence Transformers` configuration `prompts` dictionary.
25
- *
26
- * For example if ``prompt_name`` is "query" and the ``prompts`` is {"query": "query: ",
27
- * ...},
28
- * then the sentence "What is the capital of France?" will be encoded as
29
- * "query: What is the capital of France?" because the prompt text will be prepended before
30
- * any text to encode.
31
- */
32
- prompt_name?: string;
33
- truncate?: boolean;
34
- truncation_direction?: FeatureExtractionInputTruncationDirection;
35
- [property: string]: unknown;
36
- }
37
- export type FeatureExtractionInputTruncationDirection = "Left" | "Right";
38
- //# sourceMappingURL=inference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/feature-extraction/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB,CAAC,EAAE,yCAAyC,CAAC;IACjE,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED,MAAM,MAAM,yCAAyC,GAAG,MAAM,GAAG,OAAO,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/fill-mask/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA0Ef,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,63 +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 Fill Mask inference
8
- */
9
- export interface FillMaskInput {
10
- /**
11
- * The text with masked tokens
12
- */
13
- inputs: string;
14
- /**
15
- * Additional inference parameters
16
- */
17
- parameters?: FillMaskParameters;
18
- [property: string]: unknown;
19
- }
20
- /**
21
- * Additional inference parameters
22
- *
23
- * Additional inference parameters for Fill Mask
24
- */
25
- export interface FillMaskParameters {
26
- /**
27
- * When passed, the model will limit the scores to the passed targets instead of looking up
28
- * in the whole vocabulary. If the provided targets are not in the model vocab, they will be
29
- * tokenized and the first resulting token will be used (with a warning, and that might be
30
- * slower).
31
- */
32
- targets?: string[];
33
- /**
34
- * When passed, overrides the number of predictions to return.
35
- */
36
- top_k?: number;
37
- [property: string]: unknown;
38
- }
39
- export type FillMaskOutput = FillMaskOutputElement[];
40
- /**
41
- * Outputs of inference for the Fill Mask task
42
- */
43
- export interface FillMaskOutputElement {
44
- /**
45
- * The corresponding probability
46
- */
47
- score: number;
48
- /**
49
- * The corresponding input with the mask token prediction.
50
- */
51
- sequence: string;
52
- /**
53
- * The predicted token id (to replace the masked one).
54
- */
55
- token: number;
56
- tokenStr: unknown;
57
- /**
58
- * The predicted token (to replace the masked one).
59
- */
60
- token_str?: string;
61
- [property: string]: unknown;
62
- }
63
- //# sourceMappingURL=inference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/fill-mask/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAClC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,cAAc,GAAG,qBAAqB,EAAE,CAAC;AACrD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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/image-classification/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAmFf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,53 +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 Image Classification inference
8
- */
9
- export interface ImageClassificationInput {
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?: ImageClassificationParameters;
19
- [property: string]: unknown;
20
- }
21
- /**
22
- * Additional inference parameters
23
- *
24
- * Additional inference parameters for Image Classification
25
- */
26
- export interface ImageClassificationParameters {
27
- function_to_apply?: ClassificationOutputTransform;
28
- /**
29
- * When specified, limits the output to the top K most probable classes.
30
- */
31
- top_k?: number;
32
- [property: string]: unknown;
33
- }
34
- /**
35
- * The function to apply to the model outputs in order to retrieve the scores.
36
- */
37
- export type ClassificationOutputTransform = "sigmoid" | "softmax" | "none";
38
- export type ImageClassificationOutput = ImageClassificationOutputElement[];
39
- /**
40
- * Outputs of inference for the Image Classification task
41
- */
42
- export interface ImageClassificationOutputElement {
43
- /**
44
- * The predicted class label.
45
- */
46
- label: string;
47
- /**
48
- * The corresponding probability.
49
- */
50
- score: number;
51
- [property: string]: unknown;
52
- }
53
- //# sourceMappingURL=inference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-classification/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACxC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,6BAA6B,CAAC;IAC3C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC7C,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,yBAAyB,GAAG,gCAAgC,EAAE,CAAC;AAC3E;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAChD;;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/image-feature-extraction/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,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/image-segmentation/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA8Ff,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,70 +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 Image Segmentation inference
8
- */
9
- export interface ImageSegmentationInput {
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?: ImageSegmentationParameters;
19
- [property: string]: unknown;
20
- }
21
- /**
22
- * Additional inference parameters
23
- *
24
- * Additional inference parameters for Image Segmentation
25
- */
26
- export interface ImageSegmentationParameters {
27
- /**
28
- * Threshold to use when turning the predicted masks into binary values.
29
- */
30
- mask_threshold?: number;
31
- /**
32
- * Mask overlap threshold to eliminate small, disconnected segments.
33
- */
34
- overlap_mask_area_threshold?: number;
35
- /**
36
- * Segmentation task to be performed, depending on model capabilities.
37
- */
38
- subtask?: ImageSegmentationSubtask;
39
- /**
40
- * Probability threshold to filter out predicted masks.
41
- */
42
- threshold?: number;
43
- [property: string]: unknown;
44
- }
45
- /**
46
- * Segmentation task to be performed, depending on model capabilities.
47
- */
48
- export type ImageSegmentationSubtask = "instance" | "panoptic" | "semantic";
49
- export type ImageSegmentationOutput = ImageSegmentationOutputElement[];
50
- /**
51
- * Outputs of inference for the Image Segmentation task
52
- *
53
- * A predicted mask / segment
54
- */
55
- export interface ImageSegmentationOutputElement {
56
- /**
57
- * The label of the predicted segment.
58
- */
59
- label: string;
60
- /**
61
- * The corresponding mask as a black-and-white image (base64-encoded).
62
- */
63
- mask: string;
64
- /**
65
- * The score or confidence degree the model has.
66
- */
67
- score?: number;
68
- [property: string]: unknown;
69
- }
70
- //# sourceMappingURL=inference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-segmentation/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,2BAA2B,CAAC;IACzC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC3C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;AAC5E,MAAM,MAAM,uBAAuB,GAAG,8BAA8B,EAAE,CAAC;AACvE;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC9C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,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/image-text-to-text/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAiGf,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/image-to-3d/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/image-to-image/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,65 +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 Image To Image inference
8
- */
9
- export interface ImageToImageInput {
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?: ImageToImageParameters;
19
- [property: string]: unknown;
20
- }
21
- /**
22
- * Additional inference parameters
23
- *
24
- * Additional inference parameters for Image To Image
25
- */
26
- export interface ImageToImageParameters {
27
- /**
28
- * For diffusion models. A higher guidance scale value encourages the model to generate
29
- * images closely linked to the text prompt at the expense of lower image quality.
30
- */
31
- guidance_scale?: number;
32
- /**
33
- * One or several prompt to guide what NOT to include in image generation.
34
- */
35
- negative_prompt?: string[];
36
- /**
37
- * For diffusion models. The number of denoising steps. More denoising steps usually lead to
38
- * a higher quality image at the expense of slower inference.
39
- */
40
- num_inference_steps?: number;
41
- /**
42
- * The size in pixel of the output image.
43
- */
44
- target_size?: TargetSize;
45
- [property: string]: unknown;
46
- }
47
- /**
48
- * The size in pixel of the output image.
49
- */
50
- export interface TargetSize {
51
- height: number;
52
- width: number;
53
- [property: string]: unknown;
54
- }
55
- /**
56
- * Outputs of inference for the Image To Image task
57
- */
58
- export interface ImageToImageOutput {
59
- /**
60
- * The output image returned as raw bytes in the payload.
61
- */
62
- image?: unknown;
63
- [property: string]: unknown;
64
- }
65
- //# sourceMappingURL=inference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-to-image/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACtC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,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/image-to-text/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA6Ef,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,139 +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 Image To Text inference
8
- */
9
- export interface ImageToTextInput {
10
- /**
11
- * The input image data
12
- */
13
- inputs: unknown;
14
- /**
15
- * Additional inference parameters
16
- */
17
- parameters?: ImageToTextParameters;
18
- [property: string]: unknown;
19
- }
20
- /**
21
- * Additional inference parameters
22
- *
23
- * Additional inference parameters for Image To Text
24
- */
25
- export interface ImageToTextParameters {
26
- /**
27
- * Parametrization of the text generation process
28
- */
29
- generation_parameters?: GenerationParameters;
30
- /**
31
- * The amount of maximum tokens to generate.
32
- */
33
- max_new_tokens?: number;
34
- [property: string]: unknown;
35
- }
36
- /**
37
- * Parametrization of the text generation process
38
- *
39
- * Ad-hoc parametrization of the text generation process
40
- */
41
- export interface GenerationParameters {
42
- /**
43
- * Whether to use sampling instead of greedy decoding when generating new tokens.
44
- */
45
- do_sample?: boolean;
46
- /**
47
- * Controls the stopping condition for beam-based methods.
48
- */
49
- early_stopping?: EarlyStoppingUnion;
50
- /**
51
- * If set to float strictly between 0 and 1, only tokens with a conditional probability
52
- * greater than epsilon_cutoff will be sampled. In the paper, suggested values range from
53
- * 3e-4 to 9e-4, depending on the size of the model. See [Truncation Sampling as Language
54
- * Model Desmoothing](https://hf.co/papers/2210.15191) for more details.
55
- */
56
- epsilon_cutoff?: number;
57
- /**
58
- * Eta sampling is a hybrid of locally typical sampling and epsilon sampling. If set to
59
- * float strictly between 0 and 1, a token is only considered if it is greater than either
60
- * eta_cutoff or sqrt(eta_cutoff) * exp(-entropy(softmax(next_token_logits))). The latter
61
- * term is intuitively the expected next token probability, scaled by sqrt(eta_cutoff). In
62
- * the paper, suggested values range from 3e-4 to 2e-3, depending on the size of the model.
63
- * See [Truncation Sampling as Language Model Desmoothing](https://hf.co/papers/2210.15191)
64
- * for more details.
65
- */
66
- eta_cutoff?: number;
67
- /**
68
- * The maximum length (in tokens) of the generated text, including the input.
69
- */
70
- max_length?: number;
71
- /**
72
- * The maximum number of tokens to generate. Takes precedence over max_length.
73
- */
74
- max_new_tokens?: number;
75
- /**
76
- * The minimum length (in tokens) of the generated text, including the input.
77
- */
78
- min_length?: number;
79
- /**
80
- * The minimum number of tokens to generate. Takes precedence over min_length.
81
- */
82
- min_new_tokens?: number;
83
- /**
84
- * Number of groups to divide num_beams into in order to ensure diversity among different
85
- * groups of beams. See [this paper](https://hf.co/papers/1610.02424) for more details.
86
- */
87
- num_beam_groups?: number;
88
- /**
89
- * Number of beams to use for beam search.
90
- */
91
- num_beams?: number;
92
- /**
93
- * The value balances the model confidence and the degeneration penalty in contrastive
94
- * search decoding.
95
- */
96
- penalty_alpha?: number;
97
- /**
98
- * The value used to modulate the next token probabilities.
99
- */
100
- temperature?: number;
101
- /**
102
- * The number of highest probability vocabulary tokens to keep for top-k-filtering.
103
- */
104
- top_k?: number;
105
- /**
106
- * If set to float < 1, only the smallest set of most probable tokens with probabilities
107
- * that add up to top_p or higher are kept for generation.
108
- */
109
- top_p?: number;
110
- /**
111
- * Local typicality measures how similar the conditional probability of predicting a target
112
- * token next is to the expected conditional probability of predicting a random token next,
113
- * given the partial text already generated. If set to float < 1, the smallest set of the
114
- * most locally typical tokens with probabilities that add up to typical_p or higher are
115
- * kept for generation. See [this paper](https://hf.co/papers/2202.00666) for more details.
116
- */
117
- typical_p?: number;
118
- /**
119
- * Whether the model should use the past last key/values attentions to speed up decoding
120
- */
121
- use_cache?: boolean;
122
- [property: string]: unknown;
123
- }
124
- /**
125
- * Controls the stopping condition for beam-based methods.
126
- */
127
- export type EarlyStoppingUnion = boolean | "never";
128
- /**
129
- * Outputs of inference for the Image To Text task
130
- */
131
- export interface ImageToTextOutput {
132
- generatedText: unknown;
133
- /**
134
- * The generated text.
135
- */
136
- generated_text?: string;
137
- [property: string]: unknown;
138
- }
139
- //# sourceMappingURL=inference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-to-text/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;IAC7C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,OAAO,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -1,87 +0,0 @@
1
- import type { PipelineType } from "../pipelines";
2
- export type * from "./audio-classification/inference";
3
- export type * from "./automatic-speech-recognition/inference";
4
- export type { ChatCompletionInput, ChatCompletionInputMessage, ChatCompletionOutput, ChatCompletionOutputComplete, ChatCompletionOutputMessage, ChatCompletionStreamOutput, ChatCompletionStreamOutputChoice, ChatCompletionStreamOutputDelta, } from "./chat-completion/inference";
5
- export type * from "./document-question-answering/inference";
6
- export type * from "./feature-extraction/inference";
7
- export type * from "./fill-mask/inference";
8
- export type { ImageClassificationInput, ImageClassificationOutput, ImageClassificationOutputElement, ImageClassificationParameters, } from "./image-classification/inference";
9
- export type * from "./image-to-image/inference";
10
- export type { ImageToTextInput, ImageToTextOutput, ImageToTextParameters } from "./image-to-text/inference";
11
- export type * from "./image-segmentation/inference";
12
- export type * from "./object-detection/inference";
13
- export type * from "./depth-estimation/inference";
14
- export type * from "./question-answering/inference";
15
- export type * from "./sentence-similarity/inference";
16
- export type * from "./summarization/inference";
17
- export type * from "./table-question-answering/inference";
18
- export type { TextToImageInput, TextToImageOutput, TextToImageParameters } from "./text-to-image/inference";
19
- export type { TextToSpeechParameters, TextToSpeechInput, TextToSpeechOutput } from "./text-to-speech/inference";
20
- export type * from "./token-classification/inference";
21
- export type { TranslationInput, TranslationOutput } from "./translation/inference";
22
- export type { ClassificationOutputTransform, TextClassificationInput, TextClassificationOutput, TextClassificationOutputElement, TextClassificationParameters, } from "./text-classification/inference";
23
- export type { TextGenerationOutputFinishReason, TextGenerationOutputPrefillToken, TextGenerationInput, TextGenerationOutput, TextGenerationOutputDetails, TextGenerationInputGenerateParameters, TextGenerationOutputBestOfSequence, TextGenerationOutputToken, TextGenerationStreamOutputStreamDetails, TextGenerationStreamOutput, } from "./text-generation/inference";
24
- export type * from "./video-classification/inference";
25
- export type * from "./visual-question-answering/inference";
26
- export type * from "./zero-shot-classification/inference";
27
- export type * from "./zero-shot-image-classification/inference";
28
- export type { BoundingBox, ZeroShotObjectDetectionInput, ZeroShotObjectDetectionInputData, ZeroShotObjectDetectionOutput, ZeroShotObjectDetectionOutputElement, } from "./zero-shot-object-detection/inference";
29
- import type { ModelLibraryKey } from "../model-libraries";
30
- /**
31
- * Model libraries compatible with each ML task
32
- */
33
- export declare const TASKS_MODEL_LIBRARIES: Record<PipelineType, ModelLibraryKey[]>;
34
- export declare const TASKS_DATA: Record<PipelineType, TaskData | undefined>;
35
- export interface ExampleRepo {
36
- description: string;
37
- id: string;
38
- }
39
- export type TaskDemoEntry = {
40
- filename: string;
41
- type: "audio";
42
- } | {
43
- data: Array<{
44
- label: string;
45
- score: number;
46
- }>;
47
- type: "chart";
48
- } | {
49
- filename: string;
50
- type: "img";
51
- } | {
52
- table: string[][];
53
- type: "tabular";
54
- } | {
55
- content: string;
56
- label: string;
57
- type: "text";
58
- } | {
59
- text: string;
60
- tokens: Array<{
61
- end: number;
62
- start: number;
63
- type: string;
64
- }>;
65
- type: "text-with-tokens";
66
- };
67
- export interface TaskDemo {
68
- inputs: TaskDemoEntry[];
69
- outputs: TaskDemoEntry[];
70
- }
71
- export interface TaskData {
72
- datasets: ExampleRepo[];
73
- demo: TaskDemo;
74
- id: PipelineType;
75
- canonicalId?: PipelineType;
76
- isPlaceholder?: boolean;
77
- label: string;
78
- libraries: ModelLibraryKey[];
79
- metrics: ExampleRepo[];
80
- models: ExampleRepo[];
81
- spaces: ExampleRepo[];
82
- summary: string;
83
- widgetModels: string[];
84
- youtubeId?: string;
85
- }
86
- export type TaskDataCustom = Omit<TaskData, "id" | "label" | "libraries">;
87
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tasks/index.ts"],"names":[],"mappings":"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"}
@@ -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/keypoint-detection/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA6Cf,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/mask-generation/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAkDf,CAAC;AAEF,eAAe,QAAQ,CAAC"}