@huggingface/tasks
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -46,2 +46,11 @@ /** | ||
type Modality = (typeof MODALITIES)[number]; | ||
declare const MODALITY_LABELS: { | ||
multimodal: string; | ||
nlp: string; | ||
audio: string; | ||
cv: string; | ||
rl: string; | ||
tabular: string; | ||
other: string; | ||
}; | ||
/** | ||
@@ -404,2 +413,3 @@ * Public interface for a sub task. | ||
type PipelineType = keyof typeof PIPELINE_DATA; | ||
declare const PIPELINE_TYPES: ("other" | "text-classification" | "token-classification" | "table-question-answering" | "question-answering" | "zero-shot-classification" | "translation" | "summarization" | "conversational" | "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" | "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" | "visual-question-answering" | "document-question-answering" | "zero-shot-image-classification" | "graph-ml")[]; | ||
@@ -459,2 +469,2 @@ interface ExampleRepo { | ||
export { ExampleRepo, MODALITIES, Modality, ModelLibrary, PIPELINE_DATA, PipelineData, PipelineType, TASKS_DATA, TaskData, TaskDemo, TaskDemoEntry }; | ||
export { ExampleRepo, MODALITIES, MODALITY_LABELS, Modality, ModelLibrary, ModelLibraryKey, PIPELINE_DATA, PIPELINE_TYPES, PipelineData, PipelineType, TASKS_DATA, TaskData, TaskDemo, TaskDemoEntry }; |
{ | ||
"name": "@huggingface/tasks", | ||
"packageManager": "pnpm@8.3.1", | ||
"version": "0.0.4", | ||
"description": "List of ISO-639 languages used in the Hub", | ||
"packageManager": "pnpm@8.10.5", | ||
"version": "0.0.5", | ||
"description": "List of ML tasks for huggingface.co/tasks", | ||
"repository": "https://github.com/huggingface/huggingface.js.git", | ||
@@ -42,4 +42,4 @@ "publishConfig": { | ||
"build": "tsup src/index.ts --format cjs,esm --clean --dts", | ||
"type-check": "tsc" | ||
"check": "tsc" | ||
} | ||
} |
@@ -68,5 +68,5 @@ ## Use Cases | ||
<img src="/tasks/assets/image-to-image/pix2pix_examples.jpg" alt="Alt text" title="Optional title"> | ||
![Examples](https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/image-to-image/pix2pix_examples.jpg) | ||
## Useful Resources | ||
## Useful Resources | ||
@@ -73,0 +73,0 @@ - [Train your ControlNet with diffusers 🧨](https://huggingface.co/blog/train-your-controlnet) |
export type { TaskData, TaskDemo, TaskDemoEntry, ExampleRepo } from "./Types"; | ||
export { TASKS_DATA } from "./tasksData"; | ||
export { PIPELINE_DATA, type PipelineType, type PipelineData, type Modality, MODALITIES } from "./pipelines"; | ||
export { | ||
PIPELINE_DATA, | ||
PIPELINE_TYPES, | ||
type PipelineType, | ||
type PipelineData, | ||
type Modality, | ||
MODALITIES, | ||
MODALITY_LABELS, | ||
} from "./pipelines"; | ||
export { ModelLibrary } from "./modelLibraries"; | ||
export type { ModelLibraryKey } from "./modelLibraries"; |
@@ -5,2 +5,12 @@ export const MODALITIES = ["cv", "nlp", "audio", "tabular", "multimodal", "rl", "other"] as const; | ||
export const MODALITY_LABELS = { | ||
multimodal: "Multimodal", | ||
nlp: "Natural Language Processing", | ||
audio: "Audio", | ||
cv: "Computer Vision", | ||
rl: "Reinforcement Learning", | ||
tabular: "Tabular", | ||
other: "Other", | ||
} satisfies Record<Modality, string>; | ||
/** | ||
@@ -610,1 +620,2 @@ * Public interface for a sub task. | ||
export type PipelineType = keyof typeof PIPELINE_DATA; | ||
export const PIPELINE_TYPES = Object.keys(PIPELINE_DATA) as PipelineType[]; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
407909
79
10073