@huggingface/tasks 0.7.1 → 0.8.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/dist/index.cjs +10 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -2
- package/package.json +1 -1
- package/src/library-to-tasks.ts +11 -3
package/dist/index.cjs
CHANGED
|
@@ -85,12 +85,20 @@ var LIBRARY_TASK_MAPPING = {
|
|
|
85
85
|
"fill-mask",
|
|
86
86
|
"image-classification",
|
|
87
87
|
"image-segmentation",
|
|
88
|
-
"image-to-text",
|
|
89
88
|
"image-to-image",
|
|
89
|
+
"image-to-text",
|
|
90
90
|
"object-detection",
|
|
91
91
|
"question-answering",
|
|
92
|
-
"
|
|
92
|
+
"summarization",
|
|
93
|
+
"table-question-answering",
|
|
93
94
|
"text2text-generation",
|
|
95
|
+
"text-classification",
|
|
96
|
+
"text-generation",
|
|
97
|
+
"text-to-audio",
|
|
98
|
+
"text-to-speech",
|
|
99
|
+
"token-classification",
|
|
100
|
+
"translation",
|
|
101
|
+
"video-classification",
|
|
94
102
|
"visual-question-answering",
|
|
95
103
|
"zero-shot-classification",
|
|
96
104
|
"zero-shot-image-classification"
|
package/dist/index.d.ts
CHANGED
|
@@ -1152,7 +1152,7 @@ declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("sklearn" | "adapter-transformers
|
|
|
1152
1152
|
* Inference API (serverless) should be disabled for all other (library, task) pairs beyond this mapping.
|
|
1153
1153
|
* This mapping is partially generated automatically by "python-api-export-tasks" action in
|
|
1154
1154
|
* huggingface/api-inference-community repo upon merge. For transformers, the mapping is manually
|
|
1155
|
-
* based on api-inference.
|
|
1155
|
+
* based on api-inference (hf_types.rs).
|
|
1156
1156
|
*/
|
|
1157
1157
|
declare const LIBRARY_TASK_MAPPING: Partial<Record<ModelLibraryKey, PipelineType[]>>;
|
|
1158
1158
|
|
package/dist/index.js
CHANGED
|
@@ -50,12 +50,20 @@ var LIBRARY_TASK_MAPPING = {
|
|
|
50
50
|
"fill-mask",
|
|
51
51
|
"image-classification",
|
|
52
52
|
"image-segmentation",
|
|
53
|
-
"image-to-text",
|
|
54
53
|
"image-to-image",
|
|
54
|
+
"image-to-text",
|
|
55
55
|
"object-detection",
|
|
56
56
|
"question-answering",
|
|
57
|
-
"
|
|
57
|
+
"summarization",
|
|
58
|
+
"table-question-answering",
|
|
58
59
|
"text2text-generation",
|
|
60
|
+
"text-classification",
|
|
61
|
+
"text-generation",
|
|
62
|
+
"text-to-audio",
|
|
63
|
+
"text-to-speech",
|
|
64
|
+
"token-classification",
|
|
65
|
+
"translation",
|
|
66
|
+
"video-classification",
|
|
59
67
|
"visual-question-answering",
|
|
60
68
|
"zero-shot-classification",
|
|
61
69
|
"zero-shot-image-classification"
|
package/package.json
CHANGED
package/src/library-to-tasks.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { PipelineType } from "./pipelines";
|
|
|
6
6
|
* Inference API (serverless) should be disabled for all other (library, task) pairs beyond this mapping.
|
|
7
7
|
* This mapping is partially generated automatically by "python-api-export-tasks" action in
|
|
8
8
|
* huggingface/api-inference-community repo upon merge. For transformers, the mapping is manually
|
|
9
|
-
* based on api-inference.
|
|
9
|
+
* based on api-inference (hf_types.rs).
|
|
10
10
|
*/
|
|
11
11
|
export const LIBRARY_TASK_MAPPING: Partial<Record<ModelLibraryKey, PipelineType[]>> = {
|
|
12
12
|
"adapter-transformers": ["question-answering", "text-classification", "token-classification"],
|
|
@@ -53,12 +53,20 @@ export const LIBRARY_TASK_MAPPING: Partial<Record<ModelLibraryKey, PipelineType[
|
|
|
53
53
|
"fill-mask",
|
|
54
54
|
"image-classification",
|
|
55
55
|
"image-segmentation",
|
|
56
|
-
"image-to-text",
|
|
57
56
|
"image-to-image",
|
|
57
|
+
"image-to-text",
|
|
58
58
|
"object-detection",
|
|
59
59
|
"question-answering",
|
|
60
|
-
"
|
|
60
|
+
"summarization",
|
|
61
|
+
"table-question-answering",
|
|
61
62
|
"text2text-generation",
|
|
63
|
+
"text-classification",
|
|
64
|
+
"text-generation",
|
|
65
|
+
"text-to-audio",
|
|
66
|
+
"text-to-speech",
|
|
67
|
+
"token-classification",
|
|
68
|
+
"translation",
|
|
69
|
+
"video-classification",
|
|
62
70
|
"visual-question-answering",
|
|
63
71
|
"zero-shot-classification",
|
|
64
72
|
"zero-shot-image-classification",
|