@huggingface/tasks 0.9.0 → 0.10.0

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 (190) hide show
  1. package/README.md +12 -14
  2. package/dist/index.cjs +91 -18
  3. package/dist/index.js +90 -18
  4. package/dist/scripts/inference-codegen.d.ts +2 -0
  5. package/dist/scripts/inference-codegen.d.ts.map +1 -0
  6. package/dist/scripts/inference-tgi-import.d.ts +2 -0
  7. package/dist/scripts/inference-tgi-import.d.ts.map +1 -0
  8. package/dist/src/default-widget-inputs.d.ts +6 -0
  9. package/dist/src/default-widget-inputs.d.ts.map +1 -0
  10. package/dist/src/index.d.ts +17 -0
  11. package/dist/src/index.d.ts.map +1 -0
  12. package/dist/src/library-to-tasks.d.ts +11 -0
  13. package/dist/src/library-to-tasks.d.ts.map +1 -0
  14. package/dist/src/local-apps.d.ts +104 -0
  15. package/dist/src/local-apps.d.ts.map +1 -0
  16. package/dist/src/model-data.d.ts +144 -0
  17. package/dist/src/model-data.d.ts.map +1 -0
  18. package/dist/src/model-libraries-downloads.d.ts +26 -0
  19. package/dist/src/model-libraries-downloads.d.ts.map +1 -0
  20. package/dist/src/model-libraries-snippets.d.ts +43 -0
  21. package/dist/src/model-libraries-snippets.d.ts.map +1 -0
  22. package/dist/src/model-libraries.d.ts +490 -0
  23. package/dist/src/model-libraries.d.ts.map +1 -0
  24. package/dist/src/pipelines.d.ts +404 -0
  25. package/dist/src/pipelines.d.ts.map +1 -0
  26. package/dist/src/snippets/curl.d.ts +9 -0
  27. package/dist/src/snippets/curl.d.ts.map +1 -0
  28. package/dist/src/snippets/index.d.ts +6 -0
  29. package/dist/src/snippets/index.d.ts.map +1 -0
  30. package/dist/src/snippets/inputs.d.ts +3 -0
  31. package/dist/src/snippets/inputs.d.ts.map +1 -0
  32. package/dist/src/snippets/js.d.ts +11 -0
  33. package/dist/src/snippets/js.d.ts.map +1 -0
  34. package/dist/src/snippets/python.d.ts +14 -0
  35. package/dist/src/snippets/python.d.ts.map +1 -0
  36. package/dist/src/snippets/types.d.ts +8 -0
  37. package/dist/src/snippets/types.d.ts.map +1 -0
  38. package/dist/src/tasks/audio-classification/data.d.ts +4 -0
  39. package/dist/src/tasks/audio-classification/data.d.ts.map +1 -0
  40. package/dist/src/tasks/audio-classification/inference.d.ts +52 -0
  41. package/dist/src/tasks/audio-classification/inference.d.ts.map +1 -0
  42. package/dist/src/tasks/audio-to-audio/data.d.ts +4 -0
  43. package/dist/src/tasks/audio-to-audio/data.d.ts.map +1 -0
  44. package/dist/src/tasks/automatic-speech-recognition/data.d.ts +4 -0
  45. package/dist/src/tasks/automatic-speech-recognition/data.d.ts.map +1 -0
  46. package/dist/src/tasks/automatic-speech-recognition/inference.d.ts +154 -0
  47. package/dist/src/tasks/automatic-speech-recognition/inference.d.ts.map +1 -0
  48. package/dist/src/tasks/chat-completion/inference.d.ts +254 -0
  49. package/dist/src/tasks/chat-completion/inference.d.ts.map +1 -0
  50. package/dist/src/tasks/depth-estimation/data.d.ts +4 -0
  51. package/dist/src/tasks/depth-estimation/data.d.ts.map +1 -0
  52. package/dist/src/tasks/depth-estimation/inference.d.ts +36 -0
  53. package/dist/src/tasks/depth-estimation/inference.d.ts.map +1 -0
  54. package/dist/src/tasks/document-question-answering/data.d.ts +4 -0
  55. package/dist/src/tasks/document-question-answering/data.d.ts.map +1 -0
  56. package/dist/src/tasks/document-question-answering/inference.d.ts +111 -0
  57. package/dist/src/tasks/document-question-answering/inference.d.ts.map +1 -0
  58. package/dist/src/tasks/feature-extraction/data.d.ts +4 -0
  59. package/dist/src/tasks/feature-extraction/data.d.ts.map +1 -0
  60. package/dist/src/tasks/feature-extraction/inference.d.ts +23 -0
  61. package/dist/src/tasks/feature-extraction/inference.d.ts.map +1 -0
  62. package/dist/src/tasks/fill-mask/data.d.ts +4 -0
  63. package/dist/src/tasks/fill-mask/data.d.ts.map +1 -0
  64. package/dist/src/tasks/fill-mask/inference.d.ts +63 -0
  65. package/dist/src/tasks/fill-mask/inference.d.ts.map +1 -0
  66. package/dist/src/tasks/image-classification/data.d.ts +4 -0
  67. package/dist/src/tasks/image-classification/data.d.ts.map +1 -0
  68. package/dist/src/tasks/image-classification/inference.d.ts +52 -0
  69. package/dist/src/tasks/image-classification/inference.d.ts.map +1 -0
  70. package/dist/src/tasks/image-feature-extraction/data.d.ts +4 -0
  71. package/dist/src/tasks/image-feature-extraction/data.d.ts.map +1 -0
  72. package/dist/src/tasks/image-segmentation/data.d.ts +4 -0
  73. package/dist/src/tasks/image-segmentation/data.d.ts.map +1 -0
  74. package/dist/src/tasks/image-segmentation/inference.d.ts +66 -0
  75. package/dist/src/tasks/image-segmentation/inference.d.ts.map +1 -0
  76. package/dist/src/tasks/image-to-image/data.d.ts +4 -0
  77. package/dist/src/tasks/image-to-image/data.d.ts.map +1 -0
  78. package/dist/src/tasks/image-to-image/inference.d.ts +64 -0
  79. package/dist/src/tasks/image-to-image/inference.d.ts.map +1 -0
  80. package/dist/src/tasks/image-to-text/data.d.ts +4 -0
  81. package/dist/src/tasks/image-to-text/data.d.ts.map +1 -0
  82. package/dist/src/tasks/image-to-text/inference.d.ts +139 -0
  83. package/dist/src/tasks/image-to-text/inference.d.ts.map +1 -0
  84. package/dist/src/tasks/index.d.ts +87 -0
  85. package/dist/src/tasks/index.d.ts.map +1 -0
  86. package/dist/src/tasks/mask-generation/data.d.ts +4 -0
  87. package/dist/src/tasks/mask-generation/data.d.ts.map +1 -0
  88. package/dist/src/tasks/object-detection/data.d.ts +4 -0
  89. package/dist/src/tasks/object-detection/data.d.ts.map +1 -0
  90. package/dist/src/tasks/object-detection/inference.d.ts +63 -0
  91. package/dist/src/tasks/object-detection/inference.d.ts.map +1 -0
  92. package/dist/src/tasks/placeholder/data.d.ts +4 -0
  93. package/dist/src/tasks/placeholder/data.d.ts.map +1 -0
  94. package/dist/src/tasks/question-answering/data.d.ts +4 -0
  95. package/dist/src/tasks/question-answering/data.d.ts.map +1 -0
  96. package/dist/src/tasks/question-answering/inference.d.ts +100 -0
  97. package/dist/src/tasks/question-answering/inference.d.ts.map +1 -0
  98. package/dist/src/tasks/reinforcement-learning/data.d.ts +4 -0
  99. package/dist/src/tasks/reinforcement-learning/data.d.ts.map +1 -0
  100. package/dist/src/tasks/sentence-similarity/data.d.ts +4 -0
  101. package/dist/src/tasks/sentence-similarity/data.d.ts.map +1 -0
  102. package/dist/src/tasks/sentence-similarity/inference.d.ts +32 -0
  103. package/dist/src/tasks/sentence-similarity/inference.d.ts.map +1 -0
  104. package/dist/src/tasks/summarization/data.d.ts +4 -0
  105. package/dist/src/tasks/summarization/data.d.ts.map +1 -0
  106. package/dist/src/tasks/summarization/inference.d.ts +55 -0
  107. package/dist/src/tasks/summarization/inference.d.ts.map +1 -0
  108. package/dist/src/tasks/table-question-answering/data.d.ts +4 -0
  109. package/dist/src/tasks/table-question-answering/data.d.ts.map +1 -0
  110. package/dist/src/tasks/table-question-answering/inference.d.ts +62 -0
  111. package/dist/src/tasks/table-question-answering/inference.d.ts.map +1 -0
  112. package/dist/src/tasks/tabular-classification/data.d.ts +4 -0
  113. package/dist/src/tasks/tabular-classification/data.d.ts.map +1 -0
  114. package/dist/src/tasks/tabular-regression/data.d.ts +4 -0
  115. package/dist/src/tasks/tabular-regression/data.d.ts.map +1 -0
  116. package/dist/src/tasks/text-classification/data.d.ts +4 -0
  117. package/dist/src/tasks/text-classification/data.d.ts.map +1 -0
  118. package/dist/src/tasks/text-classification/inference.d.ts +52 -0
  119. package/dist/src/tasks/text-classification/inference.d.ts.map +1 -0
  120. package/dist/src/tasks/text-generation/data.d.ts +4 -0
  121. package/dist/src/tasks/text-generation/data.d.ts.map +1 -0
  122. package/dist/src/tasks/text-generation/inference.d.ts +126 -0
  123. package/dist/src/tasks/text-generation/inference.d.ts.map +1 -0
  124. package/dist/src/tasks/text-to-audio/inference.d.ts +139 -0
  125. package/dist/src/tasks/text-to-audio/inference.d.ts.map +1 -0
  126. package/dist/src/tasks/text-to-image/data.d.ts +4 -0
  127. package/dist/src/tasks/text-to-image/data.d.ts.map +1 -0
  128. package/dist/src/tasks/text-to-image/inference.d.ts +68 -0
  129. package/dist/src/tasks/text-to-image/inference.d.ts.map +1 -0
  130. package/dist/src/tasks/text-to-speech/data.d.ts +4 -0
  131. package/dist/src/tasks/text-to-speech/data.d.ts.map +1 -0
  132. package/dist/src/tasks/text-to-speech/inference.d.ts +143 -0
  133. package/dist/src/tasks/text-to-speech/inference.d.ts.map +1 -0
  134. package/dist/src/tasks/text-to-video/data.d.ts +4 -0
  135. package/dist/src/tasks/text-to-video/data.d.ts.map +1 -0
  136. package/dist/src/tasks/text2text-generation/inference.d.ts +54 -0
  137. package/dist/src/tasks/text2text-generation/inference.d.ts.map +1 -0
  138. package/dist/src/tasks/token-classification/data.d.ts +4 -0
  139. package/dist/src/tasks/token-classification/data.d.ts.map +1 -0
  140. package/dist/src/tasks/token-classification/inference.d.ts +83 -0
  141. package/dist/src/tasks/token-classification/inference.d.ts.map +1 -0
  142. package/dist/src/tasks/translation/data.d.ts +4 -0
  143. package/dist/src/tasks/translation/data.d.ts.map +1 -0
  144. package/dist/src/tasks/translation/inference.d.ts +55 -0
  145. package/dist/src/tasks/translation/inference.d.ts.map +1 -0
  146. package/dist/src/tasks/unconditional-image-generation/data.d.ts +4 -0
  147. package/dist/src/tasks/unconditional-image-generation/data.d.ts.map +1 -0
  148. package/dist/src/tasks/video-classification/data.d.ts +4 -0
  149. package/dist/src/tasks/video-classification/data.d.ts.map +1 -0
  150. package/dist/src/tasks/video-classification/inference.d.ts +60 -0
  151. package/dist/src/tasks/video-classification/inference.d.ts.map +1 -0
  152. package/dist/src/tasks/visual-question-answering/data.d.ts +4 -0
  153. package/dist/src/tasks/visual-question-answering/data.d.ts.map +1 -0
  154. package/dist/src/tasks/visual-question-answering/inference.d.ts +64 -0
  155. package/dist/src/tasks/visual-question-answering/inference.d.ts.map +1 -0
  156. package/dist/src/tasks/zero-shot-classification/data.d.ts +4 -0
  157. package/dist/src/tasks/zero-shot-classification/data.d.ts.map +1 -0
  158. package/dist/src/tasks/zero-shot-classification/inference.d.ts +68 -0
  159. package/dist/src/tasks/zero-shot-classification/inference.d.ts.map +1 -0
  160. package/dist/src/tasks/zero-shot-image-classification/data.d.ts +4 -0
  161. package/dist/src/tasks/zero-shot-image-classification/data.d.ts.map +1 -0
  162. package/dist/src/tasks/zero-shot-image-classification/inference.d.ts +62 -0
  163. package/dist/src/tasks/zero-shot-image-classification/inference.d.ts.map +1 -0
  164. package/dist/src/tasks/zero-shot-object-detection/data.d.ts +4 -0
  165. package/dist/src/tasks/zero-shot-object-detection/data.d.ts.map +1 -0
  166. package/dist/src/tasks/zero-shot-object-detection/inference.d.ts +67 -0
  167. package/dist/src/tasks/zero-shot-object-detection/inference.d.ts.map +1 -0
  168. package/dist/src/tokenizer-data.d.ts +26 -0
  169. package/dist/src/tokenizer-data.d.ts.map +1 -0
  170. package/dist/src/widget-example.d.ts +86 -0
  171. package/dist/src/widget-example.d.ts.map +1 -0
  172. package/package.json +11 -6
  173. package/src/index.ts +3 -0
  174. package/src/local-apps.ts +119 -0
  175. package/src/model-data.ts +1 -5
  176. package/src/model-libraries-snippets.ts +21 -18
  177. package/src/model-libraries.ts +9 -0
  178. package/src/tasks/chat-completion/inference.ts +204 -85
  179. package/src/tasks/chat-completion/spec/input.json +198 -34
  180. package/src/tasks/chat-completion/spec/output.json +178 -40
  181. package/src/tasks/chat-completion/spec/stream_output.json +170 -0
  182. package/src/tasks/index.ts +7 -8
  183. package/src/tasks/text-generation/inference.ts +58 -170
  184. package/src/tasks/text-generation/spec/input.json +130 -29
  185. package/src/tasks/text-generation/spec/output.json +104 -90
  186. package/src/tasks/text-generation/spec/stream_output.json +97 -0
  187. package/tsconfig.json +3 -1
  188. package/dist/index.d.ts +0 -3531
  189. package/src/tasks/chat-completion/spec/output_stream.json +0 -48
  190. package/src/tasks/text-generation/spec/output_stream.json +0 -47
@@ -0,0 +1,490 @@
1
+ import type { ModelData } from "./model-data";
2
+ import type { ElasticBoolQueryFilter } from "./model-libraries-downloads";
3
+ /**
4
+ * Elements configurable by a model library.
5
+ */
6
+ export interface LibraryUiElement {
7
+ /**
8
+ * Pretty name of the library.
9
+ * displayed in tags, and on the main
10
+ * call-to-action button on the model page.
11
+ */
12
+ prettyLabel: string;
13
+ /**
14
+ * Repo name of the library's (usually on GitHub) code repo
15
+ */
16
+ repoName: string;
17
+ /**
18
+ * URL to library's (usually on GitHub) code repo
19
+ */
20
+ repoUrl: string;
21
+ /**
22
+ * URL to library's docs
23
+ */
24
+ docsUrl?: string;
25
+ /**
26
+ * Code snippet(s) displayed on model page
27
+ */
28
+ snippets?: (model: ModelData) => string[];
29
+ /**
30
+ * Elastic query used to count this library's model downloads
31
+ *
32
+ * By default, those files are counted:
33
+ * "config.json", "config.yaml", "hyperparams.yaml", "meta.yaml"
34
+ */
35
+ countDownloads?: ElasticBoolQueryFilter;
36
+ /**
37
+ * should we display this library in hf.co/models filter
38
+ * (only for popular libraries with > 100 models)
39
+ */
40
+ filter?: boolean;
41
+ }
42
+ /**
43
+ * Add your new library here.
44
+ *
45
+ * This is for modeling (= architectures) libraries, not for file formats (like ONNX, etc).
46
+ * (unlike libraries, file formats live in an enum inside the internal codebase.)
47
+ *
48
+ * Doc on how to add a library to the Hub:
49
+ *
50
+ * https://huggingface.co/docs/hub/models-adding-libraries
51
+ *
52
+ * /!\ IMPORTANT
53
+ *
54
+ * The key you choose is the tag your models have in their library_name on the Hub.
55
+ */
56
+ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
57
+ "adapter-transformers": {
58
+ prettyLabel: string;
59
+ repoName: string;
60
+ repoUrl: string;
61
+ docsUrl: string;
62
+ snippets: (model: ModelData) => string[];
63
+ filter: true;
64
+ countDownloads: {
65
+ term: {
66
+ path: string;
67
+ };
68
+ };
69
+ };
70
+ allennlp: {
71
+ prettyLabel: string;
72
+ repoName: string;
73
+ repoUrl: string;
74
+ docsUrl: string;
75
+ snippets: (model: ModelData) => string[];
76
+ filter: true;
77
+ };
78
+ asteroid: {
79
+ prettyLabel: string;
80
+ repoName: string;
81
+ repoUrl: string;
82
+ docsUrl: string;
83
+ snippets: (model: ModelData) => string[];
84
+ filter: true;
85
+ countDownloads: {
86
+ term: {
87
+ path: string;
88
+ };
89
+ };
90
+ };
91
+ audiocraft: {
92
+ prettyLabel: string;
93
+ repoName: string;
94
+ repoUrl: string;
95
+ snippets: (model: ModelData) => string[];
96
+ filter: false;
97
+ };
98
+ bertopic: {
99
+ prettyLabel: string;
100
+ repoName: string;
101
+ repoUrl: string;
102
+ snippets: (model: ModelData) => string[];
103
+ filter: true;
104
+ };
105
+ diffusers: {
106
+ prettyLabel: string;
107
+ repoName: string;
108
+ repoUrl: string;
109
+ docsUrl: string;
110
+ snippets: (model: ModelData) => string[];
111
+ filter: true;
112
+ };
113
+ doctr: {
114
+ prettyLabel: string;
115
+ repoName: string;
116
+ repoUrl: string;
117
+ };
118
+ elm: {
119
+ prettyLabel: string;
120
+ repoName: string;
121
+ repoUrl: string;
122
+ filter: false;
123
+ countDownloads: {
124
+ wildcard: {
125
+ path: string;
126
+ };
127
+ };
128
+ };
129
+ espnet: {
130
+ prettyLabel: string;
131
+ repoName: string;
132
+ repoUrl: string;
133
+ docsUrl: string;
134
+ snippets: (model: ModelData) => string[];
135
+ filter: true;
136
+ };
137
+ fairseq: {
138
+ prettyLabel: string;
139
+ repoName: string;
140
+ repoUrl: string;
141
+ snippets: (model: ModelData) => string[];
142
+ filter: true;
143
+ };
144
+ fastai: {
145
+ prettyLabel: string;
146
+ repoName: string;
147
+ repoUrl: string;
148
+ docsUrl: string;
149
+ snippets: (model: ModelData) => string[];
150
+ filter: true;
151
+ };
152
+ fasttext: {
153
+ prettyLabel: string;
154
+ repoName: string;
155
+ repoUrl: string;
156
+ snippets: (model: ModelData) => string[];
157
+ filter: true;
158
+ };
159
+ flair: {
160
+ prettyLabel: string;
161
+ repoName: string;
162
+ repoUrl: string;
163
+ docsUrl: string;
164
+ snippets: (model: ModelData) => string[];
165
+ filter: true;
166
+ countDownloads: {
167
+ term: {
168
+ path: string;
169
+ };
170
+ };
171
+ };
172
+ gliner: {
173
+ prettyLabel: string;
174
+ repoName: string;
175
+ repoUrl: string;
176
+ snippets: (model: ModelData) => string[];
177
+ filter: false;
178
+ countDownloads: {
179
+ term: {
180
+ path: string;
181
+ };
182
+ };
183
+ };
184
+ grok: {
185
+ prettyLabel: string;
186
+ repoName: string;
187
+ repoUrl: string;
188
+ filter: false;
189
+ countDownloads: {
190
+ terms: {
191
+ path: string[];
192
+ };
193
+ };
194
+ };
195
+ keras: {
196
+ prettyLabel: string;
197
+ repoName: string;
198
+ repoUrl: string;
199
+ docsUrl: string;
200
+ snippets: (model: ModelData) => string[];
201
+ filter: true;
202
+ countDownloads: {
203
+ term: {
204
+ path: string;
205
+ };
206
+ };
207
+ };
208
+ "keras-nlp": {
209
+ prettyLabel: string;
210
+ repoName: string;
211
+ repoUrl: string;
212
+ docsUrl: string;
213
+ snippets: (model: ModelData) => string[];
214
+ };
215
+ k2: {
216
+ prettyLabel: string;
217
+ repoName: string;
218
+ repoUrl: string;
219
+ };
220
+ mindspore: {
221
+ prettyLabel: string;
222
+ repoName: string;
223
+ repoUrl: string;
224
+ };
225
+ "ml-agents": {
226
+ prettyLabel: string;
227
+ repoName: string;
228
+ repoUrl: string;
229
+ docsUrl: string;
230
+ snippets: (model: ModelData) => string[];
231
+ filter: true;
232
+ countDownloads: {
233
+ wildcard: {
234
+ path: string;
235
+ };
236
+ };
237
+ };
238
+ mlx: {
239
+ prettyLabel: string;
240
+ repoName: string;
241
+ repoUrl: string;
242
+ snippets: (model: ModelData) => string[];
243
+ filter: true;
244
+ };
245
+ "mlx-image": {
246
+ prettyLabel: string;
247
+ repoName: string;
248
+ repoUrl: string;
249
+ docsUrl: string;
250
+ snippets: (model: ModelData) => string[];
251
+ filter: false;
252
+ countDownloads: {
253
+ term: {
254
+ path: string;
255
+ };
256
+ };
257
+ };
258
+ nemo: {
259
+ prettyLabel: string;
260
+ repoName: string;
261
+ repoUrl: string;
262
+ snippets: (model: ModelData) => string[];
263
+ filter: true;
264
+ countDownloads: {
265
+ wildcard: {
266
+ path: string;
267
+ };
268
+ };
269
+ };
270
+ open_clip: {
271
+ prettyLabel: string;
272
+ repoName: string;
273
+ repoUrl: string;
274
+ snippets: (model: ModelData) => string[];
275
+ filter: true;
276
+ countDownloads: {
277
+ wildcard: {
278
+ path: string;
279
+ };
280
+ };
281
+ };
282
+ paddlenlp: {
283
+ prettyLabel: string;
284
+ repoName: string;
285
+ repoUrl: string;
286
+ docsUrl: string;
287
+ snippets: (model: ModelData) => string[];
288
+ filter: true;
289
+ countDownloads: {
290
+ term: {
291
+ path: string;
292
+ };
293
+ };
294
+ };
295
+ peft: {
296
+ prettyLabel: string;
297
+ repoName: string;
298
+ repoUrl: string;
299
+ snippets: (model: ModelData) => string[];
300
+ filter: true;
301
+ countDownloads: {
302
+ term: {
303
+ path: string;
304
+ };
305
+ };
306
+ };
307
+ "pyannote-audio": {
308
+ prettyLabel: string;
309
+ repoName: string;
310
+ repoUrl: string;
311
+ snippets: (model: ModelData) => string[];
312
+ filter: true;
313
+ };
314
+ pythae: {
315
+ prettyLabel: string;
316
+ repoName: string;
317
+ repoUrl: string;
318
+ snippets: (model: ModelData) => string[];
319
+ filter: true;
320
+ };
321
+ "sample-factory": {
322
+ prettyLabel: string;
323
+ repoName: string;
324
+ repoUrl: string;
325
+ docsUrl: string;
326
+ snippets: (model: ModelData) => string[];
327
+ filter: true;
328
+ countDownloads: {
329
+ term: {
330
+ path: string;
331
+ };
332
+ };
333
+ };
334
+ "sentence-transformers": {
335
+ prettyLabel: string;
336
+ repoName: string;
337
+ repoUrl: string;
338
+ docsUrl: string;
339
+ snippets: (model: ModelData) => string[];
340
+ filter: true;
341
+ };
342
+ setfit: {
343
+ prettyLabel: string;
344
+ repoName: string;
345
+ repoUrl: string;
346
+ docsUrl: string;
347
+ snippets: (model: ModelData) => string[];
348
+ filter: true;
349
+ };
350
+ sklearn: {
351
+ prettyLabel: string;
352
+ repoName: string;
353
+ repoUrl: string;
354
+ snippets: (model: ModelData) => string[];
355
+ filter: true;
356
+ countDownloads: {
357
+ term: {
358
+ path: string;
359
+ };
360
+ };
361
+ };
362
+ spacy: {
363
+ prettyLabel: string;
364
+ repoName: string;
365
+ repoUrl: string;
366
+ docsUrl: string;
367
+ snippets: (model: ModelData) => string[];
368
+ filter: true;
369
+ countDownloads: {
370
+ wildcard: {
371
+ path: string;
372
+ };
373
+ };
374
+ };
375
+ "span-marker": {
376
+ prettyLabel: string;
377
+ repoName: string;
378
+ repoUrl: string;
379
+ docsUrl: string;
380
+ snippets: (model: ModelData) => string[];
381
+ filter: true;
382
+ };
383
+ speechbrain: {
384
+ prettyLabel: string;
385
+ repoName: string;
386
+ repoUrl: string;
387
+ docsUrl: string;
388
+ snippets: (model: ModelData) => string[];
389
+ filter: true;
390
+ countDownloads: {
391
+ term: {
392
+ path: string;
393
+ };
394
+ };
395
+ };
396
+ "stable-baselines3": {
397
+ prettyLabel: string;
398
+ repoName: string;
399
+ repoUrl: string;
400
+ docsUrl: string;
401
+ snippets: (model: ModelData) => string[];
402
+ filter: true;
403
+ countDownloads: {
404
+ wildcard: {
405
+ path: string;
406
+ };
407
+ };
408
+ };
409
+ stanza: {
410
+ prettyLabel: string;
411
+ repoName: string;
412
+ repoUrl: string;
413
+ docsUrl: string;
414
+ snippets: (model: ModelData) => string[];
415
+ filter: true;
416
+ countDownloads: {
417
+ term: {
418
+ path: string;
419
+ };
420
+ };
421
+ };
422
+ tensorflowtts: {
423
+ prettyLabel: string;
424
+ repoName: string;
425
+ repoUrl: string;
426
+ snippets: (model: ModelData) => string[];
427
+ };
428
+ timm: {
429
+ prettyLabel: string;
430
+ repoName: string;
431
+ repoUrl: string;
432
+ docsUrl: string;
433
+ snippets: (model: ModelData) => string[];
434
+ filter: true;
435
+ countDownloads: {
436
+ terms: {
437
+ path: string[];
438
+ };
439
+ };
440
+ };
441
+ transformers: {
442
+ prettyLabel: string;
443
+ repoName: string;
444
+ repoUrl: string;
445
+ docsUrl: string;
446
+ snippets: (model: ModelData) => string[];
447
+ filter: true;
448
+ };
449
+ "transformers.js": {
450
+ prettyLabel: string;
451
+ repoName: string;
452
+ repoUrl: string;
453
+ docsUrl: string;
454
+ snippets: (model: ModelData) => string[];
455
+ filter: true;
456
+ };
457
+ "unity-sentis": {
458
+ prettyLabel: string;
459
+ repoName: string;
460
+ repoUrl: string;
461
+ snippets: () => string[];
462
+ filter: true;
463
+ countDownloads: {
464
+ wildcard: {
465
+ path: string;
466
+ };
467
+ };
468
+ };
469
+ voicecraft: {
470
+ prettyLabel: string;
471
+ repoName: string;
472
+ repoUrl: string;
473
+ docsUrl: string;
474
+ snippets: (model: ModelData) => string[];
475
+ };
476
+ whisperkit: {
477
+ prettyLabel: string;
478
+ repoName: string;
479
+ repoUrl: string;
480
+ countDownloads: {
481
+ wildcard: {
482
+ path: string;
483
+ };
484
+ };
485
+ };
486
+ };
487
+ export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
488
+ export declare const ALL_MODEL_LIBRARY_KEYS: ("sklearn" | "adapter-transformers" | "allennlp" | "asteroid" | "audiocraft" | "bertopic" | "diffusers" | "doctr" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gliner" | "grok" | "keras" | "keras-nlp" | "k2" | "mindspore" | "ml-agents" | "mlx" | "mlx-image" | "nemo" | "open_clip" | "paddlenlp" | "peft" | "pyannote-audio" | "pythae" | "sample-factory" | "sentence-transformers" | "setfit" | "spacy" | "span-marker" | "speechbrain" | "stable-baselines3" | "stanza" | "tensorflowtts" | "timm" | "transformers" | "transformers.js" | "unity-sentis" | "voicecraft" | "whisperkit")[];
489
+ export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("sklearn" | "adapter-transformers" | "allennlp" | "asteroid" | "audiocraft" | "bertopic" | "diffusers" | "doctr" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gliner" | "grok" | "keras" | "keras-nlp" | "k2" | "mindspore" | "ml-agents" | "mlx" | "mlx-image" | "nemo" | "open_clip" | "paddlenlp" | "peft" | "pyannote-audio" | "pythae" | "sample-factory" | "sentence-transformers" | "setfit" | "spacy" | "span-marker" | "speechbrain" | "stable-baselines3" | "stanza" | "tensorflowtts" | "timm" | "transformers" | "transformers.js" | "unity-sentis" | "voicecraft" | "whisperkit")[];
490
+ //# sourceMappingURL=model-libraries.d.ts.map
@@ -0,0 +1 @@
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,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1E;;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,sBAAsB,CAAC;IACxC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuXI,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,2BAA2B,CAAC;AAEvE,eAAO,MAAM,sBAAsB,0lBAAgE,CAAC;AAEpG,eAAO,MAAM,8BAA8B,0lBAQ1B,CAAC"}