@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 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
- "text-generation",
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
- "text-generation",
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@huggingface/tasks",
3
3
  "packageManager": "pnpm@8.10.5",
4
- "version": "0.7.1",
4
+ "version": "0.8.0",
5
5
  "description": "List of ML tasks for huggingface.co/tasks",
6
6
  "repository": "https://github.com/huggingface/huggingface.js.git",
7
7
  "publishConfig": {
@@ -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
- "text-generation",
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",