@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 +0,0 @@
1
- {"version":3,"file":"model-libraries.d.ts","sourceRoot":"","sources":["../../src/model-libraries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,MAAM,EAAE,CAAC;IAC1C;;;;;OAKG;IACH,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmuBI,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,2BAA2B,CAAC;AAEvE,eAAO,MAAM,sBAAsB,+1CAAgE,CAAC;AAEpG,eAAO,MAAM,8BAA8B,+1CAQ1B,CAAC"}
@@ -1,425 +0,0 @@
1
- export declare const MODALITIES: readonly ["multimodal", "nlp", "cv", "audio", "tabular", "rl", "other"];
2
- export type Modality = (typeof MODALITIES)[number];
3
- export declare const MODALITY_LABELS: {
4
- multimodal: string;
5
- nlp: string;
6
- audio: string;
7
- cv: string;
8
- rl: string;
9
- tabular: string;
10
- other: string;
11
- };
12
- /**
13
- * Public interface for a sub task.
14
- *
15
- * This can be used in a model card's `model-index` metadata.
16
- * and is more granular classification that can grow significantly
17
- * over time as new tasks are added.
18
- */
19
- export interface SubTask {
20
- /**
21
- * type of the task (e.g. audio-source-separation)
22
- */
23
- type: string;
24
- /**
25
- * displayed name of the task (e.g. Audio Source Separation)
26
- */
27
- name: string;
28
- }
29
- /**
30
- * Public interface for a PipelineData.
31
- *
32
- * This information corresponds to a pipeline type (aka task)
33
- * in the Hub.
34
- */
35
- export interface PipelineData {
36
- /**
37
- * displayed name of the task (e.g. Text Classification)
38
- */
39
- name: string;
40
- subtasks?: SubTask[];
41
- modality: Modality;
42
- /**
43
- * color for the tag icon.
44
- */
45
- color: "blue" | "green" | "indigo" | "orange" | "red" | "yellow";
46
- /**
47
- * whether to hide in /models filters
48
- */
49
- hideInModels?: boolean;
50
- /**
51
- * whether to hide in /datasets filters
52
- */
53
- hideInDatasets?: boolean;
54
- }
55
- export declare const PIPELINE_DATA: {
56
- "text-classification": {
57
- name: string;
58
- subtasks: {
59
- type: string;
60
- name: string;
61
- }[];
62
- modality: "nlp";
63
- color: "orange";
64
- };
65
- "token-classification": {
66
- name: string;
67
- subtasks: {
68
- type: string;
69
- name: string;
70
- }[];
71
- modality: "nlp";
72
- color: "blue";
73
- };
74
- "table-question-answering": {
75
- name: string;
76
- modality: "nlp";
77
- color: "green";
78
- };
79
- "question-answering": {
80
- name: string;
81
- subtasks: {
82
- type: string;
83
- name: string;
84
- }[];
85
- modality: "nlp";
86
- color: "blue";
87
- };
88
- "zero-shot-classification": {
89
- name: string;
90
- modality: "nlp";
91
- color: "yellow";
92
- };
93
- translation: {
94
- name: string;
95
- modality: "nlp";
96
- color: "green";
97
- };
98
- summarization: {
99
- name: string;
100
- subtasks: {
101
- type: string;
102
- name: string;
103
- }[];
104
- modality: "nlp";
105
- color: "indigo";
106
- };
107
- "feature-extraction": {
108
- name: string;
109
- modality: "nlp";
110
- color: "red";
111
- };
112
- "text-generation": {
113
- name: string;
114
- subtasks: {
115
- type: string;
116
- name: string;
117
- }[];
118
- modality: "nlp";
119
- color: "indigo";
120
- };
121
- "text2text-generation": {
122
- name: string;
123
- subtasks: {
124
- type: string;
125
- name: string;
126
- }[];
127
- modality: "nlp";
128
- color: "indigo";
129
- };
130
- "fill-mask": {
131
- name: string;
132
- subtasks: {
133
- type: string;
134
- name: string;
135
- }[];
136
- modality: "nlp";
137
- color: "red";
138
- };
139
- "sentence-similarity": {
140
- name: string;
141
- modality: "nlp";
142
- color: "yellow";
143
- };
144
- "text-to-speech": {
145
- name: string;
146
- modality: "audio";
147
- color: "yellow";
148
- };
149
- "text-to-audio": {
150
- name: string;
151
- modality: "audio";
152
- color: "yellow";
153
- };
154
- "automatic-speech-recognition": {
155
- name: string;
156
- modality: "audio";
157
- color: "yellow";
158
- };
159
- "audio-to-audio": {
160
- name: string;
161
- modality: "audio";
162
- color: "blue";
163
- };
164
- "audio-classification": {
165
- name: string;
166
- subtasks: {
167
- type: string;
168
- name: string;
169
- }[];
170
- modality: "audio";
171
- color: "green";
172
- };
173
- "voice-activity-detection": {
174
- name: string;
175
- modality: "audio";
176
- color: "red";
177
- };
178
- "depth-estimation": {
179
- name: string;
180
- modality: "cv";
181
- color: "yellow";
182
- };
183
- "image-classification": {
184
- name: string;
185
- subtasks: {
186
- type: string;
187
- name: string;
188
- }[];
189
- modality: "cv";
190
- color: "blue";
191
- };
192
- "object-detection": {
193
- name: string;
194
- subtasks: {
195
- type: string;
196
- name: string;
197
- }[];
198
- modality: "cv";
199
- color: "yellow";
200
- };
201
- "image-segmentation": {
202
- name: string;
203
- subtasks: {
204
- type: string;
205
- name: string;
206
- }[];
207
- modality: "cv";
208
- color: "green";
209
- };
210
- "text-to-image": {
211
- name: string;
212
- modality: "cv";
213
- color: "yellow";
214
- };
215
- "image-to-text": {
216
- name: string;
217
- subtasks: {
218
- type: string;
219
- name: string;
220
- }[];
221
- modality: "cv";
222
- color: "red";
223
- };
224
- "image-to-image": {
225
- name: string;
226
- subtasks: {
227
- type: string;
228
- name: string;
229
- }[];
230
- modality: "cv";
231
- color: "indigo";
232
- };
233
- "image-to-video": {
234
- name: string;
235
- modality: "cv";
236
- color: "indigo";
237
- };
238
- "unconditional-image-generation": {
239
- name: string;
240
- modality: "cv";
241
- color: "green";
242
- };
243
- "video-classification": {
244
- name: string;
245
- modality: "cv";
246
- color: "blue";
247
- };
248
- "reinforcement-learning": {
249
- name: string;
250
- modality: "rl";
251
- color: "red";
252
- };
253
- robotics: {
254
- name: string;
255
- modality: "rl";
256
- subtasks: {
257
- type: string;
258
- name: string;
259
- }[];
260
- color: "blue";
261
- };
262
- "tabular-classification": {
263
- name: string;
264
- modality: "tabular";
265
- subtasks: {
266
- type: string;
267
- name: string;
268
- }[];
269
- color: "blue";
270
- };
271
- "tabular-regression": {
272
- name: string;
273
- modality: "tabular";
274
- subtasks: {
275
- type: string;
276
- name: string;
277
- }[];
278
- color: "blue";
279
- };
280
- "tabular-to-text": {
281
- name: string;
282
- modality: "tabular";
283
- subtasks: {
284
- type: string;
285
- name: string;
286
- }[];
287
- color: "blue";
288
- hideInModels: true;
289
- };
290
- "table-to-text": {
291
- name: string;
292
- modality: "nlp";
293
- color: "blue";
294
- hideInModels: true;
295
- };
296
- "multiple-choice": {
297
- name: string;
298
- subtasks: {
299
- type: string;
300
- name: string;
301
- }[];
302
- modality: "nlp";
303
- color: "blue";
304
- hideInModels: true;
305
- };
306
- "text-retrieval": {
307
- name: string;
308
- subtasks: {
309
- type: string;
310
- name: string;
311
- }[];
312
- modality: "nlp";
313
- color: "indigo";
314
- hideInModels: true;
315
- };
316
- "time-series-forecasting": {
317
- name: string;
318
- modality: "tabular";
319
- subtasks: {
320
- type: string;
321
- name: string;
322
- }[];
323
- color: "blue";
324
- };
325
- "text-to-video": {
326
- name: string;
327
- modality: "cv";
328
- color: "green";
329
- };
330
- "image-text-to-text": {
331
- name: string;
332
- modality: "multimodal";
333
- color: "red";
334
- hideInDatasets: true;
335
- };
336
- "visual-question-answering": {
337
- name: string;
338
- subtasks: {
339
- type: string;
340
- name: string;
341
- }[];
342
- modality: "multimodal";
343
- color: "red";
344
- };
345
- "document-question-answering": {
346
- name: string;
347
- subtasks: {
348
- type: string;
349
- name: string;
350
- }[];
351
- modality: "multimodal";
352
- color: "blue";
353
- hideInDatasets: true;
354
- };
355
- "zero-shot-image-classification": {
356
- name: string;
357
- modality: "cv";
358
- color: "yellow";
359
- };
360
- "graph-ml": {
361
- name: string;
362
- modality: "other";
363
- color: "green";
364
- };
365
- "mask-generation": {
366
- name: string;
367
- modality: "cv";
368
- color: "indigo";
369
- };
370
- "zero-shot-object-detection": {
371
- name: string;
372
- modality: "cv";
373
- color: "yellow";
374
- };
375
- "text-to-3d": {
376
- name: string;
377
- modality: "cv";
378
- color: "yellow";
379
- };
380
- "image-to-3d": {
381
- name: string;
382
- modality: "cv";
383
- color: "green";
384
- };
385
- "image-feature-extraction": {
386
- name: string;
387
- modality: "cv";
388
- color: "indigo";
389
- };
390
- "video-text-to-text": {
391
- name: string;
392
- modality: "multimodal";
393
- color: "blue";
394
- hideInDatasets: false;
395
- };
396
- "keypoint-detection": {
397
- name: string;
398
- subtasks: {
399
- type: string;
400
- name: string;
401
- }[];
402
- modality: "cv";
403
- color: "red";
404
- hideInDatasets: true;
405
- };
406
- "any-to-any": {
407
- name: string;
408
- modality: "multimodal";
409
- color: "yellow";
410
- hideInDatasets: true;
411
- };
412
- other: {
413
- name: string;
414
- modality: "other";
415
- color: "blue";
416
- hideInModels: true;
417
- hideInDatasets: true;
418
- };
419
- };
420
- export type PipelineType = keyof typeof PIPELINE_DATA;
421
- export type WidgetType = PipelineType | "conversational";
422
- export declare const PIPELINE_TYPES: ("other" | "text-classification" | "token-classification" | "table-question-answering" | "question-answering" | "zero-shot-classification" | "translation" | "summarization" | "feature-extraction" | "text-generation" | "text2text-generation" | "fill-mask" | "sentence-similarity" | "text-to-speech" | "text-to-audio" | "automatic-speech-recognition" | "audio-to-audio" | "audio-classification" | "voice-activity-detection" | "depth-estimation" | "image-classification" | "object-detection" | "image-segmentation" | "text-to-image" | "image-to-text" | "image-to-image" | "image-to-video" | "unconditional-image-generation" | "video-classification" | "reinforcement-learning" | "robotics" | "tabular-classification" | "tabular-regression" | "tabular-to-text" | "table-to-text" | "multiple-choice" | "text-retrieval" | "time-series-forecasting" | "text-to-video" | "image-text-to-text" | "visual-question-answering" | "document-question-answering" | "zero-shot-image-classification" | "graph-ml" | "mask-generation" | "zero-shot-object-detection" | "text-to-3d" | "image-to-3d" | "image-feature-extraction" | "video-text-to-text" | "keypoint-detection" | "any-to-any")[];
423
- export declare const SUBTASK_TYPES: string[];
424
- export declare const PIPELINE_TYPES_SET: Set<"other" | "text-classification" | "token-classification" | "table-question-answering" | "question-answering" | "zero-shot-classification" | "translation" | "summarization" | "feature-extraction" | "text-generation" | "text2text-generation" | "fill-mask" | "sentence-similarity" | "text-to-speech" | "text-to-audio" | "automatic-speech-recognition" | "audio-to-audio" | "audio-classification" | "voice-activity-detection" | "depth-estimation" | "image-classification" | "object-detection" | "image-segmentation" | "text-to-image" | "image-to-text" | "image-to-image" | "image-to-video" | "unconditional-image-generation" | "video-classification" | "reinforcement-learning" | "robotics" | "tabular-classification" | "tabular-regression" | "tabular-to-text" | "table-to-text" | "multiple-choice" | "text-retrieval" | "time-series-forecasting" | "text-to-video" | "image-text-to-text" | "visual-question-answering" | "document-question-answering" | "zero-shot-image-classification" | "graph-ml" | "mask-generation" | "zero-shot-object-detection" | "text-to-3d" | "image-to-3d" | "image-feature-extraction" | "video-text-to-text" | "keypoint-detection" | "any-to-any">;
425
- //# sourceMappingURL=pipelines.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../../src/pipelines.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,yEAA0E,CAAC;AAElG,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,eAAe;;;;;;;;CAQQ,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,WAAW,OAAO;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACb;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;IACjE;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CACzB;AAcD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsmBc,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,aAAa,CAAC;AAEtD,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,gBAAgB,CAAC;AAEzD,eAAO,MAAM,cAAc,gpCAA+C,CAAC;AAE3E,eAAO,MAAM,aAAa,UAEN,CAAC;AAErB,eAAO,MAAM,kBAAkB,ipCAA0B,CAAC"}
@@ -1,14 +0,0 @@
1
- import type { ChatCompletionInputMessage, GenerationParameters } from "../tasks";
2
- export declare function stringifyMessages(messages: ChatCompletionInputMessage[], opts?: {
3
- indent?: string;
4
- attributeKeyQuotes?: boolean;
5
- customContentEscaper?: (str: string) => string;
6
- }): string;
7
- type PartialGenerationParameters = Partial<Pick<GenerationParameters, "temperature" | "max_tokens" | "top_p">>;
8
- export declare function stringifyGenerationConfig(config: PartialGenerationParameters, opts: {
9
- indent: string;
10
- attributeValueConnector: string;
11
- attributeKeyQuotes?: boolean;
12
- }): string;
13
- export {};
14
- //# sourceMappingURL=common.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/snippets/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEjF,wBAAgB,iBAAiB,CAChC,QAAQ,EAAE,0BAA0B,EAAE,EACtC,IAAI,CAAC,EAAE;IACN,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C,GACC,MAAM,CAYR;AAED,KAAK,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,aAAa,GAAG,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC;AAE/G,wBAAgB,yBAAyB,CACxC,MAAM,EAAE,2BAA2B,EACnC,IAAI,EAAE;IACL,MAAM,EAAE,MAAM,CAAC;IACf,uBAAuB,EAAE,MAAM,CAAC;IAChC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B,GACC,MAAM,CAMR"}
@@ -1,17 +0,0 @@
1
- import type { PipelineType } from "../pipelines.js";
2
- import type { ChatCompletionInputMessage, GenerationParameters } from "../tasks/index.js";
3
- import type { InferenceSnippet, ModelDataMinimal } from "./types.js";
4
- export declare const snippetBasic: (model: ModelDataMinimal, accessToken: string) => InferenceSnippet;
5
- export declare const snippetTextGeneration: (model: ModelDataMinimal, accessToken: string, opts?: {
6
- streaming?: boolean;
7
- messages?: ChatCompletionInputMessage[];
8
- temperature?: GenerationParameters["temperature"];
9
- max_tokens?: GenerationParameters["max_tokens"];
10
- top_p?: GenerationParameters["top_p"];
11
- }) => InferenceSnippet;
12
- export declare const snippetZeroShotClassification: (model: ModelDataMinimal, accessToken: string) => InferenceSnippet;
13
- export declare const snippetFile: (model: ModelDataMinimal, accessToken: string) => InferenceSnippet;
14
- export declare const curlSnippets: Partial<Record<PipelineType, (model: ModelDataMinimal, accessToken: string, opts?: Record<string, unknown>) => InferenceSnippet>>;
15
- export declare function getCurlInferenceSnippet(model: ModelDataMinimal, accessToken: string): InferenceSnippet;
16
- export declare function hasCurlInferenceSnippet(model: Pick<ModelDataMinimal, "pipeline_tag">): boolean;
17
- //# sourceMappingURL=curl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"curl.d.ts","sourceRoot":"","sources":["../../../src/snippets/curl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAErE,eAAO,MAAM,YAAY,UAAW,gBAAgB,eAAe,MAAM,KAAG,gBAM1E,CAAC;AAEH,eAAO,MAAM,qBAAqB,UAC1B,gBAAgB,eACV,MAAM,SACZ;IACN,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,0BAA0B,EAAE,CAAC;IACxC,WAAW,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAClD,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,KAAK,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;CACtC,KACC,gBAkCF,CAAC;AAEF,eAAO,MAAM,6BAA6B,UAAW,gBAAgB,eAAe,MAAM,KAAG,gBAM3F,CAAC;AAEH,eAAO,MAAM,WAAW,UAAW,gBAAgB,eAAe,MAAM,KAAG,gBAKzE,CAAC;AAEH,eAAO,MAAM,YAAY,EAAE,OAAO,CACjC,MAAM,CACL,YAAY,EACZ,CAAC,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,gBAAgB,CAClG,CA0BD,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,GAAG,gBAAgB,CAItG;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,cAAc,CAAC,GAAG,OAAO,CAE9F"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=curl.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"curl.spec.d.ts","sourceRoot":"","sources":["../../../src/snippets/curl.spec.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import * as inputs from "./inputs";
2
- import * as curl from "./curl";
3
- import * as python from "./python";
4
- import * as js from "./js";
5
- export { inputs, curl, python, js };
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/snippets/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAE3B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { ChatCompletionInputMessage } from "../tasks";
2
- import type { ModelDataMinimal } from "./types";
3
- export declare function getModelInputSnippet(model: ModelDataMinimal, noWrap?: boolean, noQuotes?: boolean): string | ChatCompletionInputMessage[];
4
- //# sourceMappingURL=inputs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/snippets/inputs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA6IhD,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,gBAAgB,EACvB,MAAM,UAAQ,EACd,QAAQ,UAAQ,GACd,MAAM,GAAG,0BAA0B,EAAE,CAmBvC"}
@@ -1,19 +0,0 @@
1
- import type { PipelineType } from "../pipelines.js";
2
- import type { ChatCompletionInputMessage, GenerationParameters } from "../tasks/index.js";
3
- import type { InferenceSnippet, ModelDataMinimal } from "./types.js";
4
- export declare const snippetBasic: (model: ModelDataMinimal, accessToken: string) => InferenceSnippet;
5
- export declare const snippetTextGeneration: (model: ModelDataMinimal, accessToken: string, opts?: {
6
- streaming?: boolean;
7
- messages?: ChatCompletionInputMessage[];
8
- temperature?: GenerationParameters["temperature"];
9
- max_tokens?: GenerationParameters["max_tokens"];
10
- top_p?: GenerationParameters["top_p"];
11
- }) => InferenceSnippet | InferenceSnippet[];
12
- export declare const snippetZeroShotClassification: (model: ModelDataMinimal, accessToken: string) => InferenceSnippet;
13
- export declare const snippetTextToImage: (model: ModelDataMinimal, accessToken: string) => InferenceSnippet;
14
- export declare const snippetTextToAudio: (model: ModelDataMinimal, accessToken: string) => InferenceSnippet;
15
- export declare const snippetFile: (model: ModelDataMinimal, accessToken: string) => InferenceSnippet;
16
- export declare const jsSnippets: Partial<Record<PipelineType, (model: ModelDataMinimal, accessToken: string, opts?: Record<string, unknown>) => InferenceSnippet | InferenceSnippet[]>>;
17
- export declare function getJsInferenceSnippet(model: ModelDataMinimal, accessToken: string): InferenceSnippet | InferenceSnippet[];
18
- export declare function hasJsInferenceSnippet(model: ModelDataMinimal): boolean;
19
- //# sourceMappingURL=js.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../../src/snippets/js.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAErE,eAAO,MAAM,YAAY,UAAW,gBAAgB,eAAe,MAAM,KAAG,gBAoB1E,CAAC;AAEH,eAAO,MAAM,qBAAqB,UAC1B,gBAAgB,eACV,MAAM,SACZ;IACN,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,0BAA0B,EAAE,CAAC;IACxC,WAAW,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAClD,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,KAAK,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;CACtC,KACC,gBAAgB,GAAG,gBAAgB,EA2GrC,CAAC;AAEF,eAAO,MAAM,6BAA6B,UAAW,gBAAgB,eAAe,MAAM,KAAG,gBAsB3F,CAAC;AAEH,eAAO,MAAM,kBAAkB,UAAW,gBAAgB,eAAe,MAAM,KAAG,gBAmBhF,CAAC;AAEH,eAAO,MAAM,kBAAkB,UAAW,gBAAgB,eAAe,MAAM,KAAG,gBAuCjF,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,gBAAgB,eAAe,MAAM,KAAG,gBAqBzE,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,OAAO,CAC/B,MAAM,CACL,YAAY,EACZ,CACC,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC1B,gBAAgB,GAAG,gBAAgB,EAAE,CAC1C,CA0BD,CAAC;AAEF,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,MAAM,GACjB,gBAAgB,GAAG,gBAAgB,EAAE,CAIvC;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAEtE"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=js.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"js.spec.d.ts","sourceRoot":"","sources":["../../../src/snippets/js.spec.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- import type { PipelineType } from "../pipelines.js";
2
- import type { ChatCompletionInputMessage, GenerationParameters } from "../tasks/index.js";
3
- import type { InferenceSnippet, ModelDataMinimal } from "./types.js";
4
- export declare const snippetConversational: (model: ModelDataMinimal, accessToken: string, opts?: {
5
- streaming?: boolean;
6
- messages?: ChatCompletionInputMessage[];
7
- temperature?: GenerationParameters["temperature"];
8
- max_tokens?: GenerationParameters["max_tokens"];
9
- top_p?: GenerationParameters["top_p"];
10
- }) => InferenceSnippet[];
11
- export declare const snippetZeroShotClassification: (model: ModelDataMinimal) => InferenceSnippet;
12
- export declare const snippetZeroShotImageClassification: (model: ModelDataMinimal) => InferenceSnippet;
13
- export declare const snippetBasic: (model: ModelDataMinimal) => InferenceSnippet;
14
- export declare const snippetFile: (model: ModelDataMinimal) => InferenceSnippet;
15
- export declare const snippetTextToImage: (model: ModelDataMinimal) => InferenceSnippet;
16
- export declare const snippetTabular: (model: ModelDataMinimal) => InferenceSnippet;
17
- export declare const snippetTextToAudio: (model: ModelDataMinimal) => InferenceSnippet;
18
- export declare const snippetDocumentQuestionAnswering: (model: ModelDataMinimal) => InferenceSnippet;
19
- export declare const pythonSnippets: Partial<Record<PipelineType, (model: ModelDataMinimal, accessToken: string, opts?: Record<string, unknown>) => InferenceSnippet | InferenceSnippet[]>>;
20
- export declare function getPythonInferenceSnippet(model: ModelDataMinimal, accessToken: string, opts?: Record<string, unknown>): InferenceSnippet | InferenceSnippet[];
21
- export declare function hasPythonInferenceSnippet(model: ModelDataMinimal): boolean;
22
- //# sourceMappingURL=python.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"python.d.ts","sourceRoot":"","sources":["../../../src/snippets/python.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAErE,eAAO,MAAM,qBAAqB,UAC1B,gBAAgB,eACV,MAAM,SACZ;IACN,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,0BAA0B,EAAE,CAAC;IACxC,WAAW,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAClD,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,KAAK,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;CACtC,KACC,gBAAgB,EAiGlB,CAAC;AAEF,eAAO,MAAM,6BAA6B,UAAW,gBAAgB,KAAG,gBAStE,CAAC;AAEH,eAAO,MAAM,kCAAkC,UAAW,gBAAgB,KAAG,gBAe3E,CAAC;AAEH,eAAO,MAAM,YAAY,UAAW,gBAAgB,KAAG,gBAQrD,CAAC;AAEH,eAAO,MAAM,WAAW,UAAW,gBAAgB,KAAG,gBAQpD,CAAC;AAEH,eAAO,MAAM,kBAAkB,UAAW,gBAAgB,KAAG,gBAW3D,CAAC;AAEH,eAAO,MAAM,cAAc,UAAW,gBAAgB,KAAG,gBAOvD,CAAC;AAEH,eAAO,MAAM,kBAAkB,UAAW,gBAAgB,KAAG,gBA+B5D,CAAC;AAEF,eAAO,MAAM,gCAAgC,UAAW,gBAAgB,KAAG,gBAWzE,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,OAAO,CACnC,MAAM,CACL,YAAY,EACZ,CACC,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC1B,gBAAgB,GAAG,gBAAgB,EAAE,CAC1C,CA8BD,CAAC;AAEF,wBAAgB,yBAAyB,CACxC,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,gBAAgB,GAAG,gBAAgB,EAAE,CAwBvC;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAE1E"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=python.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"python.spec.d.ts","sourceRoot":"","sources":["../../../src/snippets/python.spec.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- import type { ModelData } from "../model-data";
2
- /**
3
- * Minimal model data required for snippets.
4
- *
5
- * Add more fields as needed.
6
- */
7
- export type ModelDataMinimal = Pick<ModelData, "id" | "pipeline_tag" | "mask_token" | "library_name" | "config" | "tags" | "inference">;
8
- export interface InferenceSnippet {
9
- content: string;
10
- client?: string;
11
- }
12
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/snippets/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAClC,SAAS,EACT,IAAI,GAAG,cAAc,GAAG,YAAY,GAAG,cAAc,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,CACvF,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -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/audio-classification/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA4Ef,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 Audio Classification inference
8
- */
9
- export interface AudioClassificationInput {
10
- /**
11
- * The input audio data as a base64-encoded string. If no `parameters` are provided, you can
12
- * also provide the audio data as a raw bytes payload.
13
- */
14
- inputs: string;
15
- /**
16
- * Additional inference parameters
17
- */
18
- parameters?: AudioClassificationParameters;
19
- [property: string]: unknown;
20
- }
21
- /**
22
- * Additional inference parameters
23
- *
24
- * Additional inference parameters for Audio Classification
25
- */
26
- export interface AudioClassificationParameters {
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 AudioClassificationOutput = AudioClassificationOutputElement[];
39
- /**
40
- * Outputs for Audio Classification inference
41
- */
42
- export interface AudioClassificationOutputElement {
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/audio-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"}