New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@huggingface/tasks

Package Overview
Dependencies
Maintainers
3
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huggingface/tasks - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

12

dist/index.d.ts

@@ -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 };

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc