@huggingface/tasks 0.17.0 → 0.17.2

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.
@@ -485,6 +485,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
485
485
  filter: false;
486
486
  countDownloads: string;
487
487
  };
488
+ medvae: {
489
+ prettyLabel: string;
490
+ repoName: string;
491
+ repoUrl: string;
492
+ filter: false;
493
+ countDownloads: string;
494
+ };
488
495
  mitie: {
489
496
  prettyLabel: string;
490
497
  repoName: string;
@@ -920,5 +927,5 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
920
927
  };
921
928
  export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
922
929
  export declare const ALL_MODEL_LIBRARY_KEYS: ModelLibraryKey[];
923
- export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("adapter-transformers" | "allennlp" | "anemoi" | "asteroid" | "audiocraft" | "audioseal" | "ben2" | "bertopic" | "big_vision" | "birder" | "birefnet" | "bm25s" | "champ" | "chat_tts" | "colpali" | "comet" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "diffree" | "diffusers" | "diffusionkit" | "doctr" | "cartesia_pytorch" | "cartesia_mlx" | "clipscope" | "cosyvoice" | "cotracker" | "edsnlp" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gemma.cpp" | "gliner" | "glyph-byt5" | "grok" | "hallo" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "imstoucan" | "keras" | "tf-keras" | "keras-hub" | "k2" | "liveportrait" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "mamba-ssm" | "mars5-tts" | "mesh-anything" | "merlin" | "mitie" | "ml-agents" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "nemo" | "open-oasis" | "open_clip" | "paddlenlp" | "peft" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "recurrentgemma" | "relik" | "refiners" | "reverb" | "saelens" | "sam2" | "sample-factory" | "sapiens" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-tools" | "diffusion-single-file" | "seed-story" | "soloaudio" | "stable-baselines3" | "stanza" | "swarmformer" | "f5-tts" | "genmo" | "tensorflowtts" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timm" | "transformers" | "transformers.js" | "trellis" | "ultralytics" | "unity-sentis" | "sana" | "vfi-mamba" | "voicecraft" | "whisperkit" | "yolov10" | "3dtopia-xl")[];
930
+ export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("adapter-transformers" | "allennlp" | "anemoi" | "asteroid" | "audiocraft" | "audioseal" | "ben2" | "bertopic" | "big_vision" | "birder" | "birefnet" | "bm25s" | "champ" | "chat_tts" | "colpali" | "comet" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "diffree" | "diffusers" | "diffusionkit" | "doctr" | "cartesia_pytorch" | "cartesia_mlx" | "clipscope" | "cosyvoice" | "cotracker" | "edsnlp" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gemma.cpp" | "gliner" | "glyph-byt5" | "grok" | "hallo" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "imstoucan" | "keras" | "tf-keras" | "keras-hub" | "k2" | "liveportrait" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "mamba-ssm" | "mars5-tts" | "mesh-anything" | "merlin" | "medvae" | "mitie" | "ml-agents" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "nemo" | "open-oasis" | "open_clip" | "paddlenlp" | "peft" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "recurrentgemma" | "relik" | "refiners" | "reverb" | "saelens" | "sam2" | "sample-factory" | "sapiens" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-tools" | "diffusion-single-file" | "seed-story" | "soloaudio" | "stable-baselines3" | "stanza" | "swarmformer" | "f5-tts" | "genmo" | "tensorflowtts" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timm" | "transformers" | "transformers.js" | "trellis" | "ultralytics" | "unity-sentis" | "sana" | "vfi-mamba" | "voicecraft" | "whisperkit" | "yolov10" | "3dtopia-xl")[];
924
931
  //# sourceMappingURL=model-libraries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-libraries.d.ts","sourceRoot":"","sources":["../../src/model-libraries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;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,kBAAkB,CAAC;IACpC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA62BI,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,2BAA2B,CAAC;AAEvE,eAAO,MAAM,sBAAsB,EAA+C,eAAe,EAAE,CAAC;AAEpG,eAAO,MAAM,8BAA8B,mlDAQ1B,CAAC"}
@@ -380,7 +380,7 @@ exports.MODEL_LIBRARIES_UI_ELEMENTS = {
380
380
  prettyLabel: "Hunyuan3D-2",
381
381
  repoName: "Hunyuan3D-2",
382
382
  repoUrl: "https://github.com/Tencent/Hunyuan3D-2",
383
- countDownloads: `path:"model_index.json" OR path:"config.yaml"`,
383
+ countDownloads: `path_filename:"model_index" OR path_filename:"config"`,
384
384
  },
385
385
  imstoucan: {
386
386
  prettyLabel: "IMS Toucan",
@@ -473,6 +473,13 @@ exports.MODEL_LIBRARIES_UI_ELEMENTS = {
473
473
  filter: false,
474
474
  countDownloads: `path_extension:"pt"`,
475
475
  },
476
+ medvae: {
477
+ prettyLabel: "MedVAE",
478
+ repoName: "MedVAE",
479
+ repoUrl: "https://github.com/StanfordMIMI/MedVAE",
480
+ filter: false,
481
+ countDownloads: `path_extension:"ckpt"`,
482
+ },
476
483
  mitie: {
477
484
  prettyLabel: "MITIE",
478
485
  repoName: "MITIE",
@@ -1 +1 @@
1
- {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/snippets/inputs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAgJnD,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,gBAAgB,EACvB,MAAM,UAAQ,EACd,QAAQ,UAAQ,GACd,MAAM,GAAG,0BAA0B,EAAE,CAmBvC"}
1
+ {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/snippets/inputs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAsJnD,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,gBAAgB,EACvB,MAAM,UAAQ,EACd,QAAQ,UAAQ,GACd,MAAM,GAAG,0BAA0B,EAAE,CAmBvC"}
@@ -18,9 +18,9 @@ const inputsTableQuestionAnswering = () => `{
18
18
  }
19
19
  }`;
20
20
  const inputsVisualQuestionAnswering = () => `{
21
- "image": "cat.png",
22
- "question": "What is in this image?"
23
- }`;
21
+ "image": "cat.png",
22
+ "question": "What is in this image?"
23
+ }`;
24
24
  const inputsQuestionAnswering = () => `{
25
25
  "question": "What is my name?",
26
26
  "context": "My name is Clara and I live in Berkeley."
@@ -64,6 +64,10 @@ const inputsSentenceSimilarity = () => `{
64
64
  const inputsFeatureExtraction = () => `"Today is a sunny day and I will get some ice cream."`;
65
65
  const inputsImageClassification = () => `"cats.jpg"`;
66
66
  const inputsImageToText = () => `"cats.jpg"`;
67
+ const inputsImageToImage = () => `{
68
+ "image": "cat.png",
69
+ "prompt": "Turn the cat into a tiger."
70
+ }`;
67
71
  const inputsImageSegmentation = () => `"cats.jpg"`;
68
72
  const inputsObjectDetection = () => `"cats.jpg"`;
69
73
  const inputsAudioToAudio = () => `"sample1.flac"`;
@@ -84,6 +88,7 @@ const modelInputSnippets = {
84
88
  "fill-mask": inputsFillMask,
85
89
  "image-classification": inputsImageClassification,
86
90
  "image-to-text": inputsImageToText,
91
+ "image-to-image": inputsImageToImage,
87
92
  "image-segmentation": inputsImageSegmentation,
88
93
  "object-detection": inputsObjectDetection,
89
94
  "question-answering": inputsQuestionAnswering,
@@ -485,6 +485,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
485
485
  filter: false;
486
486
  countDownloads: string;
487
487
  };
488
+ medvae: {
489
+ prettyLabel: string;
490
+ repoName: string;
491
+ repoUrl: string;
492
+ filter: false;
493
+ countDownloads: string;
494
+ };
488
495
  mitie: {
489
496
  prettyLabel: string;
490
497
  repoName: string;
@@ -920,5 +927,5 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
920
927
  };
921
928
  export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
922
929
  export declare const ALL_MODEL_LIBRARY_KEYS: ModelLibraryKey[];
923
- export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("adapter-transformers" | "allennlp" | "anemoi" | "asteroid" | "audiocraft" | "audioseal" | "ben2" | "bertopic" | "big_vision" | "birder" | "birefnet" | "bm25s" | "champ" | "chat_tts" | "colpali" | "comet" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "diffree" | "diffusers" | "diffusionkit" | "doctr" | "cartesia_pytorch" | "cartesia_mlx" | "clipscope" | "cosyvoice" | "cotracker" | "edsnlp" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gemma.cpp" | "gliner" | "glyph-byt5" | "grok" | "hallo" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "imstoucan" | "keras" | "tf-keras" | "keras-hub" | "k2" | "liveportrait" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "mamba-ssm" | "mars5-tts" | "mesh-anything" | "merlin" | "mitie" | "ml-agents" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "nemo" | "open-oasis" | "open_clip" | "paddlenlp" | "peft" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "recurrentgemma" | "relik" | "refiners" | "reverb" | "saelens" | "sam2" | "sample-factory" | "sapiens" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-tools" | "diffusion-single-file" | "seed-story" | "soloaudio" | "stable-baselines3" | "stanza" | "swarmformer" | "f5-tts" | "genmo" | "tensorflowtts" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timm" | "transformers" | "transformers.js" | "trellis" | "ultralytics" | "unity-sentis" | "sana" | "vfi-mamba" | "voicecraft" | "whisperkit" | "yolov10" | "3dtopia-xl")[];
930
+ export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("adapter-transformers" | "allennlp" | "anemoi" | "asteroid" | "audiocraft" | "audioseal" | "ben2" | "bertopic" | "big_vision" | "birder" | "birefnet" | "bm25s" | "champ" | "chat_tts" | "colpali" | "comet" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "diffree" | "diffusers" | "diffusionkit" | "doctr" | "cartesia_pytorch" | "cartesia_mlx" | "clipscope" | "cosyvoice" | "cotracker" | "edsnlp" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gemma.cpp" | "gliner" | "glyph-byt5" | "grok" | "hallo" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "imstoucan" | "keras" | "tf-keras" | "keras-hub" | "k2" | "liveportrait" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "mamba-ssm" | "mars5-tts" | "mesh-anything" | "merlin" | "medvae" | "mitie" | "ml-agents" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "nemo" | "open-oasis" | "open_clip" | "paddlenlp" | "peft" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "recurrentgemma" | "relik" | "refiners" | "reverb" | "saelens" | "sam2" | "sample-factory" | "sapiens" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-tools" | "diffusion-single-file" | "seed-story" | "soloaudio" | "stable-baselines3" | "stanza" | "swarmformer" | "f5-tts" | "genmo" | "tensorflowtts" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timm" | "transformers" | "transformers.js" | "trellis" | "ultralytics" | "unity-sentis" | "sana" | "vfi-mamba" | "voicecraft" | "whisperkit" | "yolov10" | "3dtopia-xl")[];
924
931
  //# sourceMappingURL=model-libraries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-libraries.d.ts","sourceRoot":"","sources":["../../src/model-libraries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;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,kBAAkB,CAAC;IACpC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA62BI,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,2BAA2B,CAAC;AAEvE,eAAO,MAAM,sBAAsB,EAA+C,eAAe,EAAE,CAAC;AAEpG,eAAO,MAAM,8BAA8B,mlDAQ1B,CAAC"}
@@ -354,7 +354,7 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
354
354
  prettyLabel: "Hunyuan3D-2",
355
355
  repoName: "Hunyuan3D-2",
356
356
  repoUrl: "https://github.com/Tencent/Hunyuan3D-2",
357
- countDownloads: `path:"model_index.json" OR path:"config.yaml"`,
357
+ countDownloads: `path_filename:"model_index" OR path_filename:"config"`,
358
358
  },
359
359
  imstoucan: {
360
360
  prettyLabel: "IMS Toucan",
@@ -447,6 +447,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
447
447
  filter: false,
448
448
  countDownloads: `path_extension:"pt"`,
449
449
  },
450
+ medvae: {
451
+ prettyLabel: "MedVAE",
452
+ repoName: "MedVAE",
453
+ repoUrl: "https://github.com/StanfordMIMI/MedVAE",
454
+ filter: false,
455
+ countDownloads: `path_extension:"ckpt"`,
456
+ },
450
457
  mitie: {
451
458
  prettyLabel: "MITIE",
452
459
  repoName: "MITIE",
@@ -1 +1 @@
1
- {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/snippets/inputs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAgJnD,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,gBAAgB,EACvB,MAAM,UAAQ,EACd,QAAQ,UAAQ,GACd,MAAM,GAAG,0BAA0B,EAAE,CAmBvC"}
1
+ {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/snippets/inputs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAsJnD,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,gBAAgB,EACvB,MAAM,UAAQ,EACd,QAAQ,UAAQ,GACd,MAAM,GAAG,0BAA0B,EAAE,CAmBvC"}
@@ -15,9 +15,9 @@ const inputsTableQuestionAnswering = () => `{
15
15
  }
16
16
  }`;
17
17
  const inputsVisualQuestionAnswering = () => `{
18
- "image": "cat.png",
19
- "question": "What is in this image?"
20
- }`;
18
+ "image": "cat.png",
19
+ "question": "What is in this image?"
20
+ }`;
21
21
  const inputsQuestionAnswering = () => `{
22
22
  "question": "What is my name?",
23
23
  "context": "My name is Clara and I live in Berkeley."
@@ -61,6 +61,10 @@ const inputsSentenceSimilarity = () => `{
61
61
  const inputsFeatureExtraction = () => `"Today is a sunny day and I will get some ice cream."`;
62
62
  const inputsImageClassification = () => `"cats.jpg"`;
63
63
  const inputsImageToText = () => `"cats.jpg"`;
64
+ const inputsImageToImage = () => `{
65
+ "image": "cat.png",
66
+ "prompt": "Turn the cat into a tiger."
67
+ }`;
64
68
  const inputsImageSegmentation = () => `"cats.jpg"`;
65
69
  const inputsObjectDetection = () => `"cats.jpg"`;
66
70
  const inputsAudioToAudio = () => `"sample1.flac"`;
@@ -81,6 +85,7 @@ const modelInputSnippets = {
81
85
  "fill-mask": inputsFillMask,
82
86
  "image-classification": inputsImageClassification,
83
87
  "image-to-text": inputsImageToText,
88
+ "image-to-image": inputsImageToImage,
84
89
  "image-segmentation": inputsImageSegmentation,
85
90
  "object-detection": inputsObjectDetection,
86
91
  "question-answering": inputsQuestionAnswering,
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.17.0",
4
+ "version": "0.17.2",
5
5
  "description": "List of ML tasks for huggingface.co/tasks",
6
6
  "repository": "https://github.com/huggingface/huggingface.js.git",
7
7
  "publishConfig": {
@@ -398,7 +398,7 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
398
398
  prettyLabel: "Hunyuan3D-2",
399
399
  repoName: "Hunyuan3D-2",
400
400
  repoUrl: "https://github.com/Tencent/Hunyuan3D-2",
401
- countDownloads: `path:"model_index.json" OR path:"config.yaml"`,
401
+ countDownloads: `path_filename:"model_index" OR path_filename:"config"`,
402
402
  },
403
403
  imstoucan: {
404
404
  prettyLabel: "IMS Toucan",
@@ -491,6 +491,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
491
491
  filter: false,
492
492
  countDownloads: `path_extension:"pt"`,
493
493
  },
494
+ medvae: {
495
+ prettyLabel: "MedVAE",
496
+ repoName: "MedVAE",
497
+ repoUrl: "https://github.com/StanfordMIMI/MedVAE",
498
+ filter: false,
499
+ countDownloads: `path_extension:"ckpt"`,
500
+ },
494
501
  mitie: {
495
502
  prettyLabel: "MITIE",
496
503
  repoName: "MITIE",
@@ -27,9 +27,9 @@ const inputsTableQuestionAnswering = () =>
27
27
 
28
28
  const inputsVisualQuestionAnswering = () =>
29
29
  `{
30
- "image": "cat.png",
31
- "question": "What is in this image?"
32
- }`;
30
+ "image": "cat.png",
31
+ "question": "What is in this image?"
32
+ }`;
33
33
 
34
34
  const inputsQuestionAnswering = () =>
35
35
  `{
@@ -86,6 +86,11 @@ const inputsImageClassification = () => `"cats.jpg"`;
86
86
 
87
87
  const inputsImageToText = () => `"cats.jpg"`;
88
88
 
89
+ const inputsImageToImage = () => `{
90
+ "image": "cat.png",
91
+ "prompt": "Turn the cat into a tiger."
92
+ }`;
93
+
89
94
  const inputsImageSegmentation = () => `"cats.jpg"`;
90
95
 
91
96
  const inputsObjectDetection = () => `"cats.jpg"`;
@@ -120,6 +125,7 @@ const modelInputSnippets: {
120
125
  "fill-mask": inputsFillMask,
121
126
  "image-classification": inputsImageClassification,
122
127
  "image-to-text": inputsImageToText,
128
+ "image-to-image": inputsImageToImage,
123
129
  "image-segmentation": inputsImageSegmentation,
124
130
  "object-detection": inputsObjectDetection,
125
131
  "question-answering": inputsQuestionAnswering,