@huggingface/tasks 0.13.5 → 0.13.7

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 (204) hide show
  1. package/dist/commonjs/hardware.d.ts +12 -0
  2. package/dist/commonjs/hardware.d.ts.map +1 -1
  3. package/dist/commonjs/hardware.js +15 -3
  4. package/dist/commonjs/model-libraries.d.ts +15 -1
  5. package/dist/commonjs/model-libraries.d.ts.map +1 -1
  6. package/dist/commonjs/model-libraries.js +14 -0
  7. package/dist/commonjs/snippets/curl.js +4 -4
  8. package/dist/commonjs/snippets/js.js +5 -5
  9. package/dist/commonjs/tasks/audio-classification/inference.d.ts +1 -3
  10. package/dist/commonjs/tasks/audio-classification/inference.d.ts.map +1 -1
  11. package/dist/commonjs/tasks/automatic-speech-recognition/inference.d.ts +1 -5
  12. package/dist/commonjs/tasks/automatic-speech-recognition/inference.d.ts.map +1 -1
  13. package/dist/commonjs/tasks/chat-completion/inference.d.ts +18 -6
  14. package/dist/commonjs/tasks/chat-completion/inference.d.ts.map +1 -1
  15. package/dist/commonjs/tasks/depth-estimation/inference.d.ts +1 -1
  16. package/dist/commonjs/tasks/document-question-answering/inference.d.ts +1 -3
  17. package/dist/commonjs/tasks/document-question-answering/inference.d.ts.map +1 -1
  18. package/dist/commonjs/tasks/feature-extraction/inference.d.ts +1 -1
  19. package/dist/commonjs/tasks/fill-mask/inference.d.ts +1 -3
  20. package/dist/commonjs/tasks/fill-mask/inference.d.ts.map +1 -1
  21. package/dist/commonjs/tasks/image-classification/inference.d.ts +1 -3
  22. package/dist/commonjs/tasks/image-classification/inference.d.ts.map +1 -1
  23. package/dist/commonjs/tasks/image-segmentation/inference.d.ts +1 -3
  24. package/dist/commonjs/tasks/image-segmentation/inference.d.ts.map +1 -1
  25. package/dist/commonjs/tasks/image-to-image/inference.d.ts +1 -3
  26. package/dist/commonjs/tasks/image-to-image/inference.d.ts.map +1 -1
  27. package/dist/commonjs/tasks/image-to-text/inference.d.ts +1 -5
  28. package/dist/commonjs/tasks/image-to-text/inference.d.ts.map +1 -1
  29. package/dist/commonjs/tasks/object-detection/inference.d.ts +1 -3
  30. package/dist/commonjs/tasks/object-detection/inference.d.ts.map +1 -1
  31. package/dist/commonjs/tasks/question-answering/inference.d.ts +1 -3
  32. package/dist/commonjs/tasks/question-answering/inference.d.ts.map +1 -1
  33. package/dist/commonjs/tasks/sentence-similarity/inference.d.ts +1 -1
  34. package/dist/commonjs/tasks/summarization/inference.d.ts +1 -3
  35. package/dist/commonjs/tasks/summarization/inference.d.ts.map +1 -1
  36. package/dist/commonjs/tasks/table-question-answering/inference.d.ts +1 -1
  37. package/dist/commonjs/tasks/text-classification/inference.d.ts +1 -3
  38. package/dist/commonjs/tasks/text-classification/inference.d.ts.map +1 -1
  39. package/dist/commonjs/tasks/text-to-audio/inference.d.ts +1 -5
  40. package/dist/commonjs/tasks/text-to-audio/inference.d.ts.map +1 -1
  41. package/dist/commonjs/tasks/text-to-image/inference.d.ts +1 -3
  42. package/dist/commonjs/tasks/text-to-image/inference.d.ts.map +1 -1
  43. package/dist/commonjs/tasks/text-to-speech/inference.d.ts +1 -5
  44. package/dist/commonjs/tasks/text-to-speech/inference.d.ts.map +1 -1
  45. package/dist/commonjs/tasks/text2text-generation/inference.d.ts +1 -3
  46. package/dist/commonjs/tasks/text2text-generation/inference.d.ts.map +1 -1
  47. package/dist/commonjs/tasks/token-classification/inference.d.ts +1 -3
  48. package/dist/commonjs/tasks/token-classification/inference.d.ts.map +1 -1
  49. package/dist/commonjs/tasks/translation/inference.d.ts +1 -3
  50. package/dist/commonjs/tasks/translation/inference.d.ts.map +1 -1
  51. package/dist/commonjs/tasks/video-classification/inference.d.ts +1 -3
  52. package/dist/commonjs/tasks/video-classification/inference.d.ts.map +1 -1
  53. package/dist/commonjs/tasks/visual-question-answering/inference.d.ts +1 -3
  54. package/dist/commonjs/tasks/visual-question-answering/inference.d.ts.map +1 -1
  55. package/dist/commonjs/tasks/zero-shot-classification/inference.d.ts +1 -3
  56. package/dist/commonjs/tasks/zero-shot-classification/inference.d.ts.map +1 -1
  57. package/dist/commonjs/tasks/zero-shot-image-classification/inference.d.ts +1 -3
  58. package/dist/commonjs/tasks/zero-shot-image-classification/inference.d.ts.map +1 -1
  59. package/dist/commonjs/tasks/zero-shot-object-detection/inference.d.ts +1 -3
  60. package/dist/commonjs/tasks/zero-shot-object-detection/inference.d.ts.map +1 -1
  61. package/dist/esm/hardware.d.ts +12 -0
  62. package/dist/esm/hardware.d.ts.map +1 -1
  63. package/dist/esm/hardware.js +15 -3
  64. package/dist/esm/model-libraries.d.ts +15 -1
  65. package/dist/esm/model-libraries.d.ts.map +1 -1
  66. package/dist/esm/model-libraries.js +14 -0
  67. package/dist/esm/snippets/curl.js +4 -4
  68. package/dist/esm/snippets/js.js +5 -5
  69. package/dist/esm/tasks/audio-classification/inference.d.ts +1 -3
  70. package/dist/esm/tasks/audio-classification/inference.d.ts.map +1 -1
  71. package/dist/esm/tasks/automatic-speech-recognition/inference.d.ts +1 -5
  72. package/dist/esm/tasks/automatic-speech-recognition/inference.d.ts.map +1 -1
  73. package/dist/esm/tasks/chat-completion/inference.d.ts +18 -6
  74. package/dist/esm/tasks/chat-completion/inference.d.ts.map +1 -1
  75. package/dist/esm/tasks/depth-estimation/inference.d.ts +1 -1
  76. package/dist/esm/tasks/document-question-answering/inference.d.ts +1 -3
  77. package/dist/esm/tasks/document-question-answering/inference.d.ts.map +1 -1
  78. package/dist/esm/tasks/feature-extraction/inference.d.ts +1 -1
  79. package/dist/esm/tasks/fill-mask/inference.d.ts +1 -3
  80. package/dist/esm/tasks/fill-mask/inference.d.ts.map +1 -1
  81. package/dist/esm/tasks/image-classification/inference.d.ts +1 -3
  82. package/dist/esm/tasks/image-classification/inference.d.ts.map +1 -1
  83. package/dist/esm/tasks/image-segmentation/inference.d.ts +1 -3
  84. package/dist/esm/tasks/image-segmentation/inference.d.ts.map +1 -1
  85. package/dist/esm/tasks/image-to-image/inference.d.ts +1 -3
  86. package/dist/esm/tasks/image-to-image/inference.d.ts.map +1 -1
  87. package/dist/esm/tasks/image-to-text/inference.d.ts +1 -5
  88. package/dist/esm/tasks/image-to-text/inference.d.ts.map +1 -1
  89. package/dist/esm/tasks/object-detection/inference.d.ts +1 -3
  90. package/dist/esm/tasks/object-detection/inference.d.ts.map +1 -1
  91. package/dist/esm/tasks/question-answering/inference.d.ts +1 -3
  92. package/dist/esm/tasks/question-answering/inference.d.ts.map +1 -1
  93. package/dist/esm/tasks/sentence-similarity/inference.d.ts +1 -1
  94. package/dist/esm/tasks/summarization/inference.d.ts +1 -3
  95. package/dist/esm/tasks/summarization/inference.d.ts.map +1 -1
  96. package/dist/esm/tasks/table-question-answering/inference.d.ts +1 -1
  97. package/dist/esm/tasks/text-classification/inference.d.ts +1 -3
  98. package/dist/esm/tasks/text-classification/inference.d.ts.map +1 -1
  99. package/dist/esm/tasks/text-to-audio/inference.d.ts +1 -5
  100. package/dist/esm/tasks/text-to-audio/inference.d.ts.map +1 -1
  101. package/dist/esm/tasks/text-to-image/inference.d.ts +1 -3
  102. package/dist/esm/tasks/text-to-image/inference.d.ts.map +1 -1
  103. package/dist/esm/tasks/text-to-speech/inference.d.ts +1 -5
  104. package/dist/esm/tasks/text-to-speech/inference.d.ts.map +1 -1
  105. package/dist/esm/tasks/text2text-generation/inference.d.ts +1 -3
  106. package/dist/esm/tasks/text2text-generation/inference.d.ts.map +1 -1
  107. package/dist/esm/tasks/token-classification/inference.d.ts +1 -3
  108. package/dist/esm/tasks/token-classification/inference.d.ts.map +1 -1
  109. package/dist/esm/tasks/translation/inference.d.ts +1 -3
  110. package/dist/esm/tasks/translation/inference.d.ts.map +1 -1
  111. package/dist/esm/tasks/video-classification/inference.d.ts +1 -3
  112. package/dist/esm/tasks/video-classification/inference.d.ts.map +1 -1
  113. package/dist/esm/tasks/visual-question-answering/inference.d.ts +1 -3
  114. package/dist/esm/tasks/visual-question-answering/inference.d.ts.map +1 -1
  115. package/dist/esm/tasks/zero-shot-classification/inference.d.ts +1 -3
  116. package/dist/esm/tasks/zero-shot-classification/inference.d.ts.map +1 -1
  117. package/dist/esm/tasks/zero-shot-image-classification/inference.d.ts +1 -3
  118. package/dist/esm/tasks/zero-shot-image-classification/inference.d.ts.map +1 -1
  119. package/dist/esm/tasks/zero-shot-object-detection/inference.d.ts +1 -3
  120. package/dist/esm/tasks/zero-shot-object-detection/inference.d.ts.map +1 -1
  121. package/package.json +1 -1
  122. package/src/hardware.ts +15 -3
  123. package/src/model-libraries.ts +14 -0
  124. package/src/snippets/curl.ts +4 -4
  125. package/src/snippets/js.ts +5 -5
  126. package/src/tasks/audio-classification/inference.ts +1 -3
  127. package/src/tasks/audio-classification/spec/input.json +1 -2
  128. package/src/tasks/automatic-speech-recognition/inference.ts +1 -5
  129. package/src/tasks/automatic-speech-recognition/spec/input.json +1 -2
  130. package/src/tasks/chat-completion/inference.ts +19 -6
  131. package/src/tasks/chat-completion/spec/input.json +14 -19
  132. package/src/tasks/common-definitions.json +0 -1
  133. package/src/tasks/depth-estimation/inference.ts +1 -1
  134. package/src/tasks/depth-estimation/spec/input.json +1 -2
  135. package/src/tasks/document-question-answering/inference.ts +1 -3
  136. package/src/tasks/document-question-answering/spec/input.json +1 -2
  137. package/src/tasks/feature-extraction/inference.ts +1 -1
  138. package/src/tasks/feature-extraction/spec/input.json +1 -1
  139. package/src/tasks/fill-mask/inference.ts +1 -3
  140. package/src/tasks/fill-mask/spec/input.json +1 -2
  141. package/src/tasks/image-classification/inference.ts +1 -3
  142. package/src/tasks/image-classification/spec/input.json +1 -2
  143. package/src/tasks/image-segmentation/inference.ts +1 -3
  144. package/src/tasks/image-segmentation/spec/input.json +1 -2
  145. package/src/tasks/image-to-image/inference.ts +1 -3
  146. package/src/tasks/image-to-image/spec/input.json +1 -2
  147. package/src/tasks/image-to-text/inference.ts +1 -5
  148. package/src/tasks/image-to-text/spec/input.json +1 -2
  149. package/src/tasks/object-detection/inference.ts +1 -3
  150. package/src/tasks/object-detection/spec/input.json +1 -2
  151. package/src/tasks/placeholder/spec/input.json +1 -2
  152. package/src/tasks/question-answering/inference.ts +1 -3
  153. package/src/tasks/question-answering/spec/input.json +1 -2
  154. package/src/tasks/sentence-similarity/inference.ts +1 -1
  155. package/src/tasks/sentence-similarity/spec/input.json +1 -2
  156. package/src/tasks/summarization/inference.ts +1 -3
  157. package/src/tasks/summarization/spec/input.json +1 -2
  158. package/src/tasks/table-question-answering/inference.ts +1 -1
  159. package/src/tasks/table-question-answering/spec/input.json +1 -2
  160. package/src/tasks/text-classification/inference.ts +1 -3
  161. package/src/tasks/text-classification/spec/input.json +1 -2
  162. package/src/tasks/text-to-audio/inference.ts +1 -5
  163. package/src/tasks/text-to-audio/spec/input.json +1 -2
  164. package/src/tasks/text-to-image/inference.ts +1 -3
  165. package/src/tasks/text-to-image/spec/input.json +1 -2
  166. package/src/tasks/text-to-speech/inference.ts +1 -5
  167. package/src/tasks/text-to-speech/spec/input.json +1 -2
  168. package/src/tasks/text2text-generation/inference.ts +1 -3
  169. package/src/tasks/text2text-generation/spec/input.json +1 -2
  170. package/src/tasks/token-classification/inference.ts +1 -3
  171. package/src/tasks/token-classification/spec/input.json +1 -2
  172. package/src/tasks/translation/inference.ts +1 -3
  173. package/src/tasks/translation/spec/input.json +1 -2
  174. package/src/tasks/video-classification/inference.ts +1 -3
  175. package/src/tasks/video-classification/spec/input.json +1 -2
  176. package/src/tasks/visual-question-answering/inference.ts +1 -3
  177. package/src/tasks/visual-question-answering/spec/input.json +1 -2
  178. package/src/tasks/zero-shot-classification/inference.ts +1 -3
  179. package/src/tasks/zero-shot-classification/spec/input.json +1 -2
  180. package/src/tasks/zero-shot-image-classification/inference.ts +1 -3
  181. package/src/tasks/zero-shot-image-classification/spec/input.json +1 -2
  182. package/src/tasks/zero-shot-object-detection/inference.ts +1 -3
  183. package/src/tasks/zero-shot-object-detection/spec/input.json +1 -2
  184. package/dist/commonjs/snippets/curl.spec.d.ts +0 -2
  185. package/dist/commonjs/snippets/curl.spec.d.ts.map +0 -1
  186. package/dist/commonjs/snippets/curl.spec.js +0 -89
  187. package/dist/commonjs/snippets/js.spec.d.ts +0 -2
  188. package/dist/commonjs/snippets/js.spec.d.ts.map +0 -1
  189. package/dist/commonjs/snippets/js.spec.js +0 -141
  190. package/dist/commonjs/snippets/python.spec.d.ts +0 -2
  191. package/dist/commonjs/snippets/python.spec.d.ts.map +0 -1
  192. package/dist/commonjs/snippets/python.spec.js +0 -135
  193. package/dist/esm/snippets/curl.spec.d.ts +0 -2
  194. package/dist/esm/snippets/curl.spec.d.ts.map +0 -1
  195. package/dist/esm/snippets/curl.spec.js +0 -87
  196. package/dist/esm/snippets/js.spec.d.ts +0 -2
  197. package/dist/esm/snippets/js.spec.d.ts.map +0 -1
  198. package/dist/esm/snippets/js.spec.js +0 -139
  199. package/dist/esm/snippets/python.spec.d.ts +0 -2
  200. package/dist/esm/snippets/python.spec.d.ts.map +0 -1
  201. package/dist/esm/snippets/python.spec.js +0 -133
  202. package/src/snippets/curl.spec.ts +0 -94
  203. package/src/snippets/js.spec.ts +0 -148
  204. package/src/snippets/python.spec.ts +0 -144
@@ -12,7 +12,7 @@ export interface VisualQuestionAnsweringInput {
12
12
  */
13
13
  inputs: VisualQuestionAnsweringInputData;
14
14
  /**
15
- * Additional inference parameters
15
+ * Additional inference parameters for Visual Question Answering
16
16
  */
17
17
  parameters?: VisualQuestionAnsweringParameters;
18
18
  [property: string]: unknown;
@@ -32,8 +32,6 @@ export interface VisualQuestionAnsweringInputData {
32
32
  [property: string]: unknown;
33
33
  }
34
34
  /**
35
- * Additional inference parameters
36
- *
37
35
  * Additional inference parameters for Visual Question Answering
38
36
  */
39
37
  export interface VisualQuestionAnsweringParameters {
@@ -1 +1 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/visual-question-answering/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC5C;;OAEG;IACH,MAAM,EAAE,gCAAgC,CAAC;IACzC;;OAEG;IACH,UAAU,CAAC,EAAE,iCAAiC,CAAC;IAC/C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IACjD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,6BAA6B,GAAG,oCAAoC,EAAE,CAAC;AACnF;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACpD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
1
+ {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/visual-question-answering/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC5C;;OAEG;IACH,MAAM,EAAE,gCAAgC,CAAC;IACzC;;OAEG;IACH,UAAU,CAAC,EAAE,iCAAiC,CAAC;IAC/C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IACjD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,6BAA6B,GAAG,oCAAoC,EAAE,CAAC;AACnF;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACpD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -12,14 +12,12 @@ export interface ZeroShotClassificationInput {
12
12
  */
13
13
  inputs: string;
14
14
  /**
15
- * Additional inference parameters
15
+ * Additional inference parameters for Zero Shot Classification
16
16
  */
17
17
  parameters: ZeroShotClassificationParameters;
18
18
  [property: string]: unknown;
19
19
  }
20
20
  /**
21
- * Additional inference parameters
22
- *
23
21
  * Additional inference parameters for Zero Shot Classification
24
22
  */
25
23
  export interface ZeroShotClassificationParameters {
@@ -1 +1 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/zero-shot-classification/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC3C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,EAAE,gCAAgC,CAAC;IAC7C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,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,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
1
+ {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/zero-shot-classification/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC3C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,EAAE,gCAAgC,CAAC;IAC7C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,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,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -12,14 +12,12 @@ export interface ZeroShotImageClassificationInput {
12
12
  */
13
13
  inputs: string;
14
14
  /**
15
- * Additional inference parameters
15
+ * Additional inference parameters for Zero Shot Image Classification
16
16
  */
17
17
  parameters: ZeroShotImageClassificationParameters;
18
18
  [property: string]: unknown;
19
19
  }
20
20
  /**
21
- * Additional inference parameters
22
- *
23
21
  * Additional inference parameters for Zero Shot Image Classification
24
22
  */
25
23
  export interface ZeroShotImageClassificationParameters {
@@ -1 +1 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/zero-shot-image-classification/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,EAAE,qCAAqC,CAAC;IAClD,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,qCAAqC;IACrD;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,iCAAiC,GAAG,wCAAwC,EAAE,CAAC;AAC3F;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACxD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
1
+ {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/zero-shot-image-classification/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,EAAE,qCAAqC,CAAC;IAClD,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACrD;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,iCAAiC,GAAG,wCAAwC,EAAE,CAAC;AAC3F;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACxD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -12,14 +12,12 @@ export interface ZeroShotObjectDetectionInput {
12
12
  */
13
13
  inputs: string;
14
14
  /**
15
- * Additional inference parameters
15
+ * Additional inference parameters for Zero Shot Object Detection
16
16
  */
17
17
  parameters: ZeroShotObjectDetectionParameters;
18
18
  [property: string]: unknown;
19
19
  }
20
20
  /**
21
- * Additional inference parameters
22
- *
23
21
  * Additional inference parameters for Zero Shot Object Detection
24
22
  */
25
23
  export interface ZeroShotObjectDetectionParameters {
@@ -1 +1 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/zero-shot-object-detection/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC5C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,EAAE,iCAAiC,CAAC;IAC9C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IACjD;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,6BAA6B,GAAG,oCAAoC,EAAE,CAAC;AACnF;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACpD;;;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
+ {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/zero-shot-object-detection/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC5C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,EAAE,iCAAiC,CAAC;IAC9C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IACjD;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,6BAA6B,GAAG,oCAAoC,EAAE,CAAC;AACnF;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACpD;;;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"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@huggingface/tasks",
3
3
  "packageManager": "pnpm@8.10.5",
4
- "version": "0.13.5",
4
+ "version": "0.13.7",
5
5
  "description": "List of ML tasks for huggingface.co/tasks",
6
6
  "repository": "https://github.com/huggingface/huggingface.js.git",
7
7
  "publishConfig": {
package/src/hardware.ts CHANGED
@@ -452,7 +452,7 @@ export const SKUS = {
452
452
  memory: [8, 16, 24],
453
453
  },
454
454
  "Apple M2 Pro": {
455
- tflops: 13.6,
455
+ tflops: 6.8,
456
456
  memory: [16, 24, 32],
457
457
  },
458
458
  "Apple M2 Max": {
@@ -464,17 +464,29 @@ export const SKUS = {
464
464
  memory: [64, 96, 128, 192],
465
465
  },
466
466
  "Apple M3": {
467
- tflops: 2.84,
467
+ tflops: 4.1,
468
468
  memory: [8, 16, 24],
469
469
  },
470
470
  "Apple M3 Pro": {
471
- tflops: 14,
471
+ tflops: 7.4,
472
472
  memory: [18, 36],
473
473
  },
474
474
  "Apple M3 Max": {
475
475
  tflops: 14.2,
476
476
  memory: [36, 48, 64, 96, 128],
477
477
  },
478
+ "Apple M4": {
479
+ tflops: 4.6,
480
+ memory: [16, 24, 32],
481
+ },
482
+ "Apple M4 Pro": {
483
+ tflops: 9.2,
484
+ memory: [24, 48],
485
+ },
486
+ "Apple M4 Max": {
487
+ tflops: 18.4,
488
+ memory: [36, 48, 64, 128],
489
+ },
478
490
  },
479
491
  },
480
492
  } satisfies Record<string, Record<string, Record<string, HardwareSpec>>>;
@@ -150,6 +150,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
150
150
  filter: false,
151
151
  countDownloads: `path:"adapter_config.json"`,
152
152
  },
153
+ "cxr-foundation": {
154
+ prettyLabel: "CXR Foundation",
155
+ repoName: "cxr-foundation",
156
+ repoUrl: "https://github.com/google-health/cxr-foundation",
157
+ filter: false,
158
+ countDownloads: `path:"precomputed_embeddings/embeddings.npz" OR path:"pax-elixr-b-text/saved_model.pb"`,
159
+ },
153
160
  deepforest: {
154
161
  prettyLabel: "DeepForest",
155
162
  repoName: "deepforest",
@@ -173,6 +180,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
173
180
  snippets: snippets.depth_pro,
174
181
  filter: false,
175
182
  },
183
+ "derm-foundation": {
184
+ prettyLabel: "Derm Foundation",
185
+ repoName: "derm-foundation",
186
+ repoUrl: "https://github.com/google-health/derm-foundation",
187
+ filter: false,
188
+ countDownloads: `path:"scin_dataset_precomputed_embeddings.npz" OR path:"saved_model.pb"`,
189
+ },
176
190
  diffree: {
177
191
  prettyLabel: "Diffree",
178
192
  repoName: "Diffree",
@@ -9,7 +9,7 @@ export const snippetBasic = (model: ModelDataMinimal, accessToken: string): Infe
9
9
  -X POST \\
10
10
  -d '{"inputs": ${getModelInputSnippet(model, true)}}' \\
11
11
  -H 'Content-Type: application/json' \\
12
- -H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}"`,
12
+ -H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}'`,
13
13
  });
14
14
 
15
15
  export const snippetTextGeneration = (
@@ -36,7 +36,7 @@ export const snippetTextGeneration = (
36
36
  };
37
37
  return {
38
38
  content: `curl 'https://api-inference.huggingface.co/models/${model.id}/v1/chat/completions' \\
39
- -H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}" \\
39
+ -H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}' \\
40
40
  -H 'Content-Type: application/json' \\
41
41
  --data '{
42
42
  "model": "${model.id}",
@@ -63,14 +63,14 @@ export const snippetZeroShotClassification = (model: ModelDataMinimal, accessTok
63
63
  -X POST \\
64
64
  -d '{"inputs": ${getModelInputSnippet(model, true)}, "parameters": {"candidate_labels": ["refund", "legal", "faq"]}}' \\
65
65
  -H 'Content-Type: application/json' \\
66
- -H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}"`,
66
+ -H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}'`,
67
67
  });
68
68
 
69
69
  export const snippetFile = (model: ModelDataMinimal, accessToken: string): InferenceSnippet => ({
70
70
  content: `curl https://api-inference.huggingface.co/models/${model.id} \\
71
71
  -X POST \\
72
72
  --data-binary '@${getModelInputSnippet(model, true, true)}' \\
73
- -H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}"`,
73
+ -H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}'`,
74
74
  });
75
75
 
76
76
  export const curlSnippets: Partial<
@@ -10,7 +10,7 @@ export const snippetBasic = (model: ModelDataMinimal, accessToken: string): Infe
10
10
  "https://api-inference.huggingface.co/models/${model.id}",
11
11
  {
12
12
  headers: {
13
- Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
13
+ Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
14
14
  "Content-Type": "application/json",
15
15
  },
16
16
  method: "POST",
@@ -151,7 +151,7 @@ export const snippetZeroShotClassification = (model: ModelDataMinimal, accessTok
151
151
  "https://api-inference.huggingface.co/models/${model.id}",
152
152
  {
153
153
  headers: {
154
- Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
154
+ Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
155
155
  "Content-Type": "application/json",
156
156
  },
157
157
  method: "POST",
@@ -175,7 +175,7 @@ export const snippetTextToImage = (model: ModelDataMinimal, accessToken: string)
175
175
  "https://api-inference.huggingface.co/models/${model.id}",
176
176
  {
177
177
  headers: {
178
- Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
178
+ Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
179
179
  "Content-Type": "application/json",
180
180
  },
181
181
  method: "POST",
@@ -196,7 +196,7 @@ export const snippetTextToAudio = (model: ModelDataMinimal, accessToken: string)
196
196
  "https://api-inference.huggingface.co/models/${model.id}",
197
197
  {
198
198
  headers: {
199
- Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
199
+ Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
200
200
  "Content-Type": "application/json",
201
201
  },
202
202
  method: "POST",
@@ -238,7 +238,7 @@ export const snippetFile = (model: ModelDataMinimal, accessToken: string): Infer
238
238
  "https://api-inference.huggingface.co/models/${model.id}",
239
239
  {
240
240
  headers: {
241
- Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
241
+ Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
242
242
  "Content-Type": "application/json",
243
243
  },
244
244
  method: "POST",
@@ -13,14 +13,12 @@ export interface AudioClassificationInput {
13
13
  */
14
14
  inputs: string;
15
15
  /**
16
- * Additional inference parameters
16
+ * Additional inference parameters for Audio Classification
17
17
  */
18
18
  parameters?: AudioClassificationParameters;
19
19
  [property: string]: unknown;
20
20
  }
21
21
  /**
22
- * Additional inference parameters
23
- *
24
22
  * Additional inference parameters for Audio Classification
25
23
  */
26
24
  export interface AudioClassificationParameters {
@@ -10,14 +10,13 @@
10
10
  "type": "string"
11
11
  },
12
12
  "parameters": {
13
- "description": "Additional inference parameters",
13
+ "description": "Additional inference parameters for Audio Classification",
14
14
  "$ref": "#/$defs/AudioClassificationParameters"
15
15
  }
16
16
  },
17
17
  "$defs": {
18
18
  "AudioClassificationParameters": {
19
19
  "title": "AudioClassificationParameters",
20
- "description": "Additional inference parameters for Audio Classification",
21
20
  "type": "object",
22
21
  "properties": {
23
22
  "function_to_apply": {
@@ -14,15 +14,13 @@ export interface AutomaticSpeechRecognitionInput {
14
14
  */
15
15
  inputs: string;
16
16
  /**
17
- * Additional inference parameters
17
+ * Additional inference parameters for Automatic Speech Recognition
18
18
  */
19
19
  parameters?: AutomaticSpeechRecognitionParameters;
20
20
  [property: string]: unknown;
21
21
  }
22
22
 
23
23
  /**
24
- * Additional inference parameters
25
- *
26
24
  * Additional inference parameters for Automatic Speech Recognition
27
25
  */
28
26
  export interface AutomaticSpeechRecognitionParameters {
@@ -39,8 +37,6 @@ export interface AutomaticSpeechRecognitionParameters {
39
37
 
40
38
  /**
41
39
  * Parametrization of the text generation process
42
- *
43
- * Ad-hoc parametrization of the text generation process
44
40
  */
45
41
  export interface GenerationParameters {
46
42
  /**
@@ -10,14 +10,13 @@
10
10
  "type": "string"
11
11
  },
12
12
  "parameters": {
13
- "description": "Additional inference parameters",
13
+ "description": "Additional inference parameters for Automatic Speech Recognition",
14
14
  "$ref": "#/$defs/AutomaticSpeechRecognitionParameters"
15
15
  }
16
16
  },
17
17
  "$defs": {
18
18
  "AutomaticSpeechRecognitionParameters": {
19
19
  "title": "AutomaticSpeechRecognitionParameters",
20
- "description": "Additional inference parameters for Automatic Speech Recognition",
21
20
  "type": "object",
22
21
  "properties": {
23
22
  "return_timestamps": {
@@ -79,7 +79,7 @@ export interface ChatCompletionInput {
79
79
  * We generally recommend altering this or `top_p` but not both.
80
80
  */
81
81
  temperature?: number;
82
- tool_choice?: ChatCompletionInputTool;
82
+ tool_choice?: ChatCompletionInputToolChoice;
83
83
  /**
84
84
  * A prompt to be appended before the tools
85
85
  */
@@ -89,7 +89,7 @@ export interface ChatCompletionInput {
89
89
  * Use this to provide a list of
90
90
  * functions the model may generate JSON inputs for.
91
91
  */
92
- tools?: ToolElement[];
92
+ tools?: ChatCompletionInputTool[];
93
93
  /**
94
94
  * An integer between 0 and 5 specifying the number of most likely tokens to return at each
95
95
  * token position, each with
@@ -154,10 +154,23 @@ export interface ChatCompletionInputStreamOptions {
154
154
  [property: string]: unknown;
155
155
  }
156
156
 
157
- export type ChatCompletionInputTool = ChatCompletionInputToolType | string;
157
+ /**
158
+ *
159
+ * <https://platform.openai.com/docs/guides/function-calling/configuring-function-calling-behavior-using-the-tool_choice-parameter>
160
+ */
161
+ export type ChatCompletionInputToolChoice = ChatCompletionInputToolChoiceEnum | ChatCompletionInputToolChoiceObject;
162
+
163
+ /**
164
+ * Means the model can pick between generating a message or calling one or more tools.
165
+ *
166
+ * Means the model will not call any tool and instead generates a message.
167
+ *
168
+ * Means the model must call one or more tools.
169
+ */
170
+ export type ChatCompletionInputToolChoiceEnum = "auto" | "none" | "required";
158
171
 
159
- export interface ChatCompletionInputToolType {
160
- function?: ChatCompletionInputFunctionName;
172
+ export interface ChatCompletionInputToolChoiceObject {
173
+ function: ChatCompletionInputFunctionName;
161
174
  [property: string]: unknown;
162
175
  }
163
176
 
@@ -166,7 +179,7 @@ export interface ChatCompletionInputFunctionName {
166
179
  [property: string]: unknown;
167
180
  }
168
181
 
169
- export interface ToolElement {
182
+ export interface ChatCompletionInputTool {
170
183
  function: ChatCompletionInputFunctionDefinition;
171
184
  type: string;
172
185
  [property: string]: unknown;
@@ -114,6 +114,7 @@
114
114
  "$ref": "#/$defs/ChatCompletionInputToolChoice"
115
115
  }
116
116
  ],
117
+ "default": "auto",
117
118
  "nullable": true
118
119
  },
119
120
  "tool_prompt": {
@@ -272,23 +273,21 @@
272
273
  "title": "ChatCompletionInputStreamOptions"
273
274
  },
274
275
  "ChatCompletionInputToolChoice": {
275
- "allOf": [
276
- {
277
- "$ref": "#/$defs/ChatCompletionInputToolType"
278
- }
279
- ],
280
- "nullable": true,
281
- "title": "ChatCompletionInputToolChoice"
282
- },
283
- "ChatCompletionInputToolType": {
284
276
  "oneOf": [
285
277
  {
286
- "type": "object",
287
- "default": null,
288
- "nullable": true
278
+ "type": "string",
279
+ "description": "Means the model can pick between generating a message or calling one or more tools.",
280
+ "enum": ["auto"]
289
281
  },
290
282
  {
291
- "type": "string"
283
+ "type": "string",
284
+ "description": "Means the model will not call any tool and instead generates a message.",
285
+ "enum": ["none"]
286
+ },
287
+ {
288
+ "type": "string",
289
+ "description": "Means the model must call one or more tools.",
290
+ "enum": ["required"]
292
291
  },
293
292
  {
294
293
  "type": "object",
@@ -298,14 +297,10 @@
298
297
  "$ref": "#/$defs/ChatCompletionInputFunctionName"
299
298
  }
300
299
  }
301
- },
302
- {
303
- "type": "object",
304
- "default": null,
305
- "nullable": true
306
300
  }
307
301
  ],
308
- "title": "ChatCompletionInputToolType"
302
+ "description": "<https://platform.openai.com/docs/guides/function-calling/configuring-function-calling-behavior-using-the-tool_choice-parameter>",
303
+ "title": "ChatCompletionInputToolChoice"
309
304
  },
310
305
  "ChatCompletionInputFunctionName": {
311
306
  "type": "object",
@@ -26,7 +26,6 @@
26
26
  },
27
27
  "GenerationParameters": {
28
28
  "title": "GenerationParameters",
29
- "description": "Ad-hoc parametrization of the text generation process",
30
29
  "type": "object",
31
30
  "properties": {
32
31
  "temperature": {
@@ -13,7 +13,7 @@ export interface DepthEstimationInput {
13
13
  */
14
14
  inputs: unknown;
15
15
  /**
16
- * Additional inference parameters
16
+ * Additional inference parameters for Depth Estimation
17
17
  */
18
18
  parameters?: { [key: string]: unknown };
19
19
  [property: string]: unknown;
@@ -9,14 +9,13 @@
9
9
  "description": "The input image data"
10
10
  },
11
11
  "parameters": {
12
- "description": "Additional inference parameters",
12
+ "description": "Additional inference parameters for Depth Estimation",
13
13
  "$ref": "#/$defs/DepthEstimationParameters"
14
14
  }
15
15
  },
16
16
  "$defs": {
17
17
  "DepthEstimationParameters": {
18
18
  "title": "DepthEstimationParameters",
19
- "description": "Additional inference parameters for Depth Estimation",
20
19
  "type": "object",
21
20
  "properties": {}
22
21
  }
@@ -12,7 +12,7 @@ export interface DocumentQuestionAnsweringInput {
12
12
  */
13
13
  inputs: DocumentQuestionAnsweringInputData;
14
14
  /**
15
- * Additional inference parameters
15
+ * Additional inference parameters for Document Question Answering
16
16
  */
17
17
  parameters?: DocumentQuestionAnsweringParameters;
18
18
  [property: string]: unknown;
@@ -32,8 +32,6 @@ export interface DocumentQuestionAnsweringInputData {
32
32
  [property: string]: unknown;
33
33
  }
34
34
  /**
35
- * Additional inference parameters
36
- *
37
35
  * Additional inference parameters for Document Question Answering
38
36
  */
39
37
  export interface DocumentQuestionAnsweringParameters {
@@ -21,14 +21,13 @@
21
21
  "required": ["image", "question"]
22
22
  },
23
23
  "parameters": {
24
- "description": "Additional inference parameters",
24
+ "description": "Additional inference parameters for Document Question Answering",
25
25
  "$ref": "#/$defs/DocumentQuestionAnsweringParameters"
26
26
  }
27
27
  },
28
28
  "$defs": {
29
29
  "DocumentQuestionAnsweringParameters": {
30
30
  "title": "DocumentQuestionAnsweringParameters",
31
- "description": "Additional inference parameters for Document Question Answering",
32
31
  "type": "object",
33
32
  "properties": {
34
33
  "doc_stride": {
@@ -23,7 +23,7 @@ export interface FeatureExtractionInput {
23
23
  * The name of the prompt that should be used by for encoding. If not set, no prompt
24
24
  * will be applied.
25
25
  *
26
- * Must be a key in the `Sentence Transformers` configuration `prompts` dictionary.
26
+ * Must be a key in the `sentence-transformers` configuration `prompts` dictionary.
27
27
  *
28
28
  * For example if ``prompt_name`` is "query" and the ``prompts`` is {"query": "query: ",
29
29
  * ...},
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "prompt_name": {
19
19
  "type": "string",
20
- "description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `Sentence Transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
20
+ "description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `sentence-transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
21
21
  "default": "null",
22
22
  "example": "null",
23
23
  "nullable": true
@@ -12,14 +12,12 @@ export interface FillMaskInput {
12
12
  */
13
13
  inputs: string;
14
14
  /**
15
- * Additional inference parameters
15
+ * Additional inference parameters for Fill Mask
16
16
  */
17
17
  parameters?: FillMaskParameters;
18
18
  [property: string]: unknown;
19
19
  }
20
20
  /**
21
- * Additional inference parameters
22
- *
23
21
  * Additional inference parameters for Fill Mask
24
22
  */
25
23
  export interface FillMaskParameters {
@@ -10,14 +10,13 @@
10
10
  "type": "string"
11
11
  },
12
12
  "parameters": {
13
- "description": "Additional inference parameters",
13
+ "description": "Additional inference parameters for Fill Mask",
14
14
  "$ref": "#/$defs/FillMaskParameters"
15
15
  }
16
16
  },
17
17
  "$defs": {
18
18
  "FillMaskParameters": {
19
19
  "title": "FillMaskParameters",
20
- "description": "Additional inference parameters for Fill Mask",
21
20
  "type": "object",
22
21
  "properties": {
23
22
  "top_k": {
@@ -13,14 +13,12 @@ export interface ImageClassificationInput {
13
13
  */
14
14
  inputs: string;
15
15
  /**
16
- * Additional inference parameters
16
+ * Additional inference parameters for Image Classification
17
17
  */
18
18
  parameters?: ImageClassificationParameters;
19
19
  [property: string]: unknown;
20
20
  }
21
21
  /**
22
- * Additional inference parameters
23
- *
24
22
  * Additional inference parameters for Image Classification
25
23
  */
26
24
  export interface ImageClassificationParameters {
@@ -10,14 +10,13 @@
10
10
  "description": "The input image data as a base64-encoded string. If no `parameters` are provided, you can also provide the image data as a raw bytes payload."
11
11
  },
12
12
  "parameters": {
13
- "description": "Additional inference parameters",
13
+ "description": "Additional inference parameters for Image Classification",
14
14
  "$ref": "#/$defs/ImageClassificationParameters"
15
15
  }
16
16
  },
17
17
  "$defs": {
18
18
  "ImageClassificationParameters": {
19
19
  "title": "ImageClassificationParameters",
20
- "description": "Additional inference parameters for Image Classification",
21
20
  "type": "object",
22
21
  "properties": {
23
22
  "function_to_apply": {
@@ -13,14 +13,12 @@ export interface ImageSegmentationInput {
13
13
  */
14
14
  inputs: string;
15
15
  /**
16
- * Additional inference parameters
16
+ * Additional inference parameters for Image Segmentation
17
17
  */
18
18
  parameters?: ImageSegmentationParameters;
19
19
  [property: string]: unknown;
20
20
  }
21
21
  /**
22
- * Additional inference parameters
23
- *
24
22
  * Additional inference parameters for Image Segmentation
25
23
  */
26
24
  export interface ImageSegmentationParameters {
@@ -10,14 +10,13 @@
10
10
  "description": "The input image data as a base64-encoded string. If no `parameters` are provided, you can also provide the image data as a raw bytes payload."
11
11
  },
12
12
  "parameters": {
13
- "description": "Additional inference parameters",
13
+ "description": "Additional inference parameters for Image Segmentation",
14
14
  "$ref": "#/$defs/ImageSegmentationParameters"
15
15
  }
16
16
  },
17
17
  "$defs": {
18
18
  "ImageSegmentationParameters": {
19
19
  "title": "ImageSegmentationParameters",
20
- "description": "Additional inference parameters for Image Segmentation",
21
20
  "type": "object",
22
21
  "properties": {
23
22
  "mask_threshold": {