@huggingface/tasks 0.15.0 → 0.15.1

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.
@@ -499,7 +499,7 @@ const keras_hub = (model) => {
499
499
  }
500
500
  }
501
501
  // Then, add remaining tasks
502
- for (const task in tasks) {
502
+ for (const task of tasks) {
503
503
  if (!Object.keys(_keras_hub_tasks_with_example).includes(task)) {
504
504
  snippets.push(_keras_hub_task_without_example(task, modelId));
505
505
  }
@@ -472,7 +472,7 @@ export const keras_hub = (model) => {
472
472
  }
473
473
  }
474
474
  // Then, add remaining tasks
475
- for (const task in tasks) {
475
+ for (const task of tasks) {
476
476
  if (!Object.keys(_keras_hub_tasks_with_example).includes(task)) {
477
477
  snippets.push(_keras_hub_task_without_example(task, modelId));
478
478
  }
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.15.0",
4
+ "version": "0.15.1",
5
5
  "description": "List of ML tasks for huggingface.co/tasks",
6
6
  "repository": "https://github.com/huggingface/huggingface.js.git",
7
7
  "publishConfig": {
@@ -526,7 +526,7 @@ export const keras_hub = (model: ModelData): string[] => {
526
526
  }
527
527
  }
528
528
  // Then, add remaining tasks
529
- for (const task in tasks) {
529
+ for (const task of tasks) {
530
530
  if (!Object.keys(_keras_hub_tasks_with_example).includes(task)) {
531
531
  snippets.push(_keras_hub_task_without_example(task, modelId));
532
532
  }