@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.
- package/README.md +12 -14
- package/dist/index.cjs +91 -18
- package/dist/index.js +90 -18
- package/dist/scripts/inference-codegen.d.ts +2 -0
- package/dist/scripts/inference-codegen.d.ts.map +1 -0
- package/dist/scripts/inference-tgi-import.d.ts +2 -0
- package/dist/scripts/inference-tgi-import.d.ts.map +1 -0
- package/dist/src/default-widget-inputs.d.ts +6 -0
- package/dist/src/default-widget-inputs.d.ts.map +1 -0
- package/dist/src/index.d.ts +17 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/library-to-tasks.d.ts +11 -0
- package/dist/src/library-to-tasks.d.ts.map +1 -0
- package/dist/src/local-apps.d.ts +104 -0
- package/dist/src/local-apps.d.ts.map +1 -0
- package/dist/src/model-data.d.ts +144 -0
- package/dist/src/model-data.d.ts.map +1 -0
- package/dist/src/model-libraries-downloads.d.ts +26 -0
- package/dist/src/model-libraries-downloads.d.ts.map +1 -0
- package/dist/src/model-libraries-snippets.d.ts +43 -0
- package/dist/src/model-libraries-snippets.d.ts.map +1 -0
- package/dist/src/model-libraries.d.ts +490 -0
- package/dist/src/model-libraries.d.ts.map +1 -0
- package/dist/src/pipelines.d.ts +404 -0
- package/dist/src/pipelines.d.ts.map +1 -0
- package/dist/src/snippets/curl.d.ts +9 -0
- package/dist/src/snippets/curl.d.ts.map +1 -0
- package/dist/src/snippets/index.d.ts +6 -0
- package/dist/src/snippets/index.d.ts.map +1 -0
- package/dist/src/snippets/inputs.d.ts +3 -0
- package/dist/src/snippets/inputs.d.ts.map +1 -0
- package/dist/src/snippets/js.d.ts +11 -0
- package/dist/src/snippets/js.d.ts.map +1 -0
- package/dist/src/snippets/python.d.ts +14 -0
- package/dist/src/snippets/python.d.ts.map +1 -0
- package/dist/src/snippets/types.d.ts +8 -0
- package/dist/src/snippets/types.d.ts.map +1 -0
- package/dist/src/tasks/audio-classification/data.d.ts +4 -0
- package/dist/src/tasks/audio-classification/data.d.ts.map +1 -0
- package/dist/src/tasks/audio-classification/inference.d.ts +52 -0
- package/dist/src/tasks/audio-classification/inference.d.ts.map +1 -0
- package/dist/src/tasks/audio-to-audio/data.d.ts +4 -0
- package/dist/src/tasks/audio-to-audio/data.d.ts.map +1 -0
- package/dist/src/tasks/automatic-speech-recognition/data.d.ts +4 -0
- package/dist/src/tasks/automatic-speech-recognition/data.d.ts.map +1 -0
- package/dist/src/tasks/automatic-speech-recognition/inference.d.ts +154 -0
- package/dist/src/tasks/automatic-speech-recognition/inference.d.ts.map +1 -0
- package/dist/src/tasks/chat-completion/inference.d.ts +254 -0
- package/dist/src/tasks/chat-completion/inference.d.ts.map +1 -0
- package/dist/src/tasks/depth-estimation/data.d.ts +4 -0
- package/dist/src/tasks/depth-estimation/data.d.ts.map +1 -0
- package/dist/src/tasks/depth-estimation/inference.d.ts +36 -0
- package/dist/src/tasks/depth-estimation/inference.d.ts.map +1 -0
- package/dist/src/tasks/document-question-answering/data.d.ts +4 -0
- package/dist/src/tasks/document-question-answering/data.d.ts.map +1 -0
- package/dist/src/tasks/document-question-answering/inference.d.ts +111 -0
- package/dist/src/tasks/document-question-answering/inference.d.ts.map +1 -0
- package/dist/src/tasks/feature-extraction/data.d.ts +4 -0
- package/dist/src/tasks/feature-extraction/data.d.ts.map +1 -0
- package/dist/src/tasks/feature-extraction/inference.d.ts +23 -0
- package/dist/src/tasks/feature-extraction/inference.d.ts.map +1 -0
- package/dist/src/tasks/fill-mask/data.d.ts +4 -0
- package/dist/src/tasks/fill-mask/data.d.ts.map +1 -0
- package/dist/src/tasks/fill-mask/inference.d.ts +63 -0
- package/dist/src/tasks/fill-mask/inference.d.ts.map +1 -0
- package/dist/src/tasks/image-classification/data.d.ts +4 -0
- package/dist/src/tasks/image-classification/data.d.ts.map +1 -0
- package/dist/src/tasks/image-classification/inference.d.ts +52 -0
- package/dist/src/tasks/image-classification/inference.d.ts.map +1 -0
- package/dist/src/tasks/image-feature-extraction/data.d.ts +4 -0
- package/dist/src/tasks/image-feature-extraction/data.d.ts.map +1 -0
- package/dist/src/tasks/image-segmentation/data.d.ts +4 -0
- package/dist/src/tasks/image-segmentation/data.d.ts.map +1 -0
- package/dist/src/tasks/image-segmentation/inference.d.ts +66 -0
- package/dist/src/tasks/image-segmentation/inference.d.ts.map +1 -0
- package/dist/src/tasks/image-to-image/data.d.ts +4 -0
- package/dist/src/tasks/image-to-image/data.d.ts.map +1 -0
- package/dist/src/tasks/image-to-image/inference.d.ts +64 -0
- package/dist/src/tasks/image-to-image/inference.d.ts.map +1 -0
- package/dist/src/tasks/image-to-text/data.d.ts +4 -0
- package/dist/src/tasks/image-to-text/data.d.ts.map +1 -0
- package/dist/src/tasks/image-to-text/inference.d.ts +139 -0
- package/dist/src/tasks/image-to-text/inference.d.ts.map +1 -0
- package/dist/src/tasks/index.d.ts +87 -0
- package/dist/src/tasks/index.d.ts.map +1 -0
- package/dist/src/tasks/mask-generation/data.d.ts +4 -0
- package/dist/src/tasks/mask-generation/data.d.ts.map +1 -0
- package/dist/src/tasks/object-detection/data.d.ts +4 -0
- package/dist/src/tasks/object-detection/data.d.ts.map +1 -0
- package/dist/src/tasks/object-detection/inference.d.ts +63 -0
- package/dist/src/tasks/object-detection/inference.d.ts.map +1 -0
- package/dist/src/tasks/placeholder/data.d.ts +4 -0
- package/dist/src/tasks/placeholder/data.d.ts.map +1 -0
- package/dist/src/tasks/question-answering/data.d.ts +4 -0
- package/dist/src/tasks/question-answering/data.d.ts.map +1 -0
- package/dist/src/tasks/question-answering/inference.d.ts +100 -0
- package/dist/src/tasks/question-answering/inference.d.ts.map +1 -0
- package/dist/src/tasks/reinforcement-learning/data.d.ts +4 -0
- package/dist/src/tasks/reinforcement-learning/data.d.ts.map +1 -0
- package/dist/src/tasks/sentence-similarity/data.d.ts +4 -0
- package/dist/src/tasks/sentence-similarity/data.d.ts.map +1 -0
- package/dist/src/tasks/sentence-similarity/inference.d.ts +32 -0
- package/dist/src/tasks/sentence-similarity/inference.d.ts.map +1 -0
- package/dist/src/tasks/summarization/data.d.ts +4 -0
- package/dist/src/tasks/summarization/data.d.ts.map +1 -0
- package/dist/src/tasks/summarization/inference.d.ts +55 -0
- package/dist/src/tasks/summarization/inference.d.ts.map +1 -0
- package/dist/src/tasks/table-question-answering/data.d.ts +4 -0
- package/dist/src/tasks/table-question-answering/data.d.ts.map +1 -0
- package/dist/src/tasks/table-question-answering/inference.d.ts +62 -0
- package/dist/src/tasks/table-question-answering/inference.d.ts.map +1 -0
- package/dist/src/tasks/tabular-classification/data.d.ts +4 -0
- package/dist/src/tasks/tabular-classification/data.d.ts.map +1 -0
- package/dist/src/tasks/tabular-regression/data.d.ts +4 -0
- package/dist/src/tasks/tabular-regression/data.d.ts.map +1 -0
- package/dist/src/tasks/text-classification/data.d.ts +4 -0
- package/dist/src/tasks/text-classification/data.d.ts.map +1 -0
- package/dist/src/tasks/text-classification/inference.d.ts +52 -0
- package/dist/src/tasks/text-classification/inference.d.ts.map +1 -0
- package/dist/src/tasks/text-generation/data.d.ts +4 -0
- package/dist/src/tasks/text-generation/data.d.ts.map +1 -0
- package/dist/src/tasks/text-generation/inference.d.ts +126 -0
- package/dist/src/tasks/text-generation/inference.d.ts.map +1 -0
- package/dist/src/tasks/text-to-audio/inference.d.ts +139 -0
- package/dist/src/tasks/text-to-audio/inference.d.ts.map +1 -0
- package/dist/src/tasks/text-to-image/data.d.ts +4 -0
- package/dist/src/tasks/text-to-image/data.d.ts.map +1 -0
- package/dist/src/tasks/text-to-image/inference.d.ts +68 -0
- package/dist/src/tasks/text-to-image/inference.d.ts.map +1 -0
- package/dist/src/tasks/text-to-speech/data.d.ts +4 -0
- package/dist/src/tasks/text-to-speech/data.d.ts.map +1 -0
- package/dist/src/tasks/text-to-speech/inference.d.ts +143 -0
- package/dist/src/tasks/text-to-speech/inference.d.ts.map +1 -0
- package/dist/src/tasks/text-to-video/data.d.ts +4 -0
- package/dist/src/tasks/text-to-video/data.d.ts.map +1 -0
- package/dist/src/tasks/text2text-generation/inference.d.ts +54 -0
- package/dist/src/tasks/text2text-generation/inference.d.ts.map +1 -0
- package/dist/src/tasks/token-classification/data.d.ts +4 -0
- package/dist/src/tasks/token-classification/data.d.ts.map +1 -0
- package/dist/src/tasks/token-classification/inference.d.ts +83 -0
- package/dist/src/tasks/token-classification/inference.d.ts.map +1 -0
- package/dist/src/tasks/translation/data.d.ts +4 -0
- package/dist/src/tasks/translation/data.d.ts.map +1 -0
- package/dist/src/tasks/translation/inference.d.ts +55 -0
- package/dist/src/tasks/translation/inference.d.ts.map +1 -0
- package/dist/src/tasks/unconditional-image-generation/data.d.ts +4 -0
- package/dist/src/tasks/unconditional-image-generation/data.d.ts.map +1 -0
- package/dist/src/tasks/video-classification/data.d.ts +4 -0
- package/dist/src/tasks/video-classification/data.d.ts.map +1 -0
- package/dist/src/tasks/video-classification/inference.d.ts +60 -0
- package/dist/src/tasks/video-classification/inference.d.ts.map +1 -0
- package/dist/src/tasks/visual-question-answering/data.d.ts +4 -0
- package/dist/src/tasks/visual-question-answering/data.d.ts.map +1 -0
- package/dist/src/tasks/visual-question-answering/inference.d.ts +64 -0
- package/dist/src/tasks/visual-question-answering/inference.d.ts.map +1 -0
- package/dist/src/tasks/zero-shot-classification/data.d.ts +4 -0
- package/dist/src/tasks/zero-shot-classification/data.d.ts.map +1 -0
- package/dist/src/tasks/zero-shot-classification/inference.d.ts +68 -0
- package/dist/src/tasks/zero-shot-classification/inference.d.ts.map +1 -0
- package/dist/src/tasks/zero-shot-image-classification/data.d.ts +4 -0
- package/dist/src/tasks/zero-shot-image-classification/data.d.ts.map +1 -0
- package/dist/src/tasks/zero-shot-image-classification/inference.d.ts +62 -0
- package/dist/src/tasks/zero-shot-image-classification/inference.d.ts.map +1 -0
- package/dist/src/tasks/zero-shot-object-detection/data.d.ts +4 -0
- package/dist/src/tasks/zero-shot-object-detection/data.d.ts.map +1 -0
- package/dist/src/tasks/zero-shot-object-detection/inference.d.ts +67 -0
- package/dist/src/tasks/zero-shot-object-detection/inference.d.ts.map +1 -0
- package/dist/src/tokenizer-data.d.ts +26 -0
- package/dist/src/tokenizer-data.d.ts.map +1 -0
- package/dist/src/widget-example.d.ts +86 -0
- package/dist/src/widget-example.d.ts.map +1 -0
- package/package.json +11 -6
- package/src/index.ts +3 -0
- package/src/local-apps.ts +119 -0
- package/src/model-data.ts +1 -5
- package/src/model-libraries-snippets.ts +21 -18
- package/src/model-libraries.ts +9 -0
- package/src/tasks/chat-completion/inference.ts +204 -85
- package/src/tasks/chat-completion/spec/input.json +198 -34
- package/src/tasks/chat-completion/spec/output.json +178 -40
- package/src/tasks/chat-completion/spec/stream_output.json +170 -0
- package/src/tasks/index.ts +7 -8
- package/src/tasks/text-generation/inference.ts +58 -170
- package/src/tasks/text-generation/spec/input.json +130 -29
- package/src/tasks/text-generation/spec/output.json +104 -90
- package/src/tasks/text-generation/spec/stream_output.json +97 -0
- package/tsconfig.json +3 -1
- package/dist/index.d.ts +0 -3531
- package/src/tasks/chat-completion/spec/output_stream.json +0 -48
- 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"}
|