@huggingface/tasks 0.13.4 → 0.13.5

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.
Files changed (49) hide show
  1. package/dist/commonjs/local-apps.d.ts.map +1 -1
  2. package/dist/commonjs/local-apps.js +40 -21
  3. package/dist/commonjs/local-apps.spec.d.ts +2 -0
  4. package/dist/commonjs/local-apps.spec.d.ts.map +1 -0
  5. package/dist/commonjs/local-apps.spec.js +114 -0
  6. package/dist/commonjs/model-libraries-snippets.d.ts.map +1 -1
  7. package/dist/commonjs/model-libraries-snippets.js +23 -12
  8. package/dist/commonjs/model-libraries-snippets.spec.d.ts +2 -0
  9. package/dist/commonjs/model-libraries-snippets.spec.d.ts.map +1 -0
  10. package/dist/commonjs/model-libraries-snippets.spec.js +51 -0
  11. package/dist/commonjs/tasks/audio-classification/inference.d.ts +3 -0
  12. package/dist/commonjs/tasks/audio-classification/inference.d.ts.map +1 -1
  13. package/dist/commonjs/tasks/image-classification/inference.d.ts +3 -0
  14. package/dist/commonjs/tasks/image-classification/inference.d.ts.map +1 -1
  15. package/dist/commonjs/tasks/text-classification/inference.d.ts +3 -0
  16. package/dist/commonjs/tasks/text-classification/inference.d.ts.map +1 -1
  17. package/dist/commonjs/tasks/video-classification/inference.d.ts +3 -0
  18. package/dist/commonjs/tasks/video-classification/inference.d.ts.map +1 -1
  19. package/dist/esm/local-apps.d.ts.map +1 -1
  20. package/dist/esm/local-apps.js +40 -21
  21. package/dist/esm/local-apps.spec.d.ts +2 -0
  22. package/dist/esm/local-apps.spec.d.ts.map +1 -0
  23. package/dist/esm/local-apps.spec.js +112 -0
  24. package/dist/esm/model-libraries-snippets.d.ts.map +1 -1
  25. package/dist/esm/model-libraries-snippets.js +23 -12
  26. package/dist/esm/model-libraries-snippets.spec.d.ts +2 -0
  27. package/dist/esm/model-libraries-snippets.spec.d.ts.map +1 -0
  28. package/dist/esm/model-libraries-snippets.spec.js +49 -0
  29. package/dist/esm/tasks/audio-classification/inference.d.ts +3 -0
  30. package/dist/esm/tasks/audio-classification/inference.d.ts.map +1 -1
  31. package/dist/esm/tasks/image-classification/inference.d.ts +3 -0
  32. package/dist/esm/tasks/image-classification/inference.d.ts.map +1 -1
  33. package/dist/esm/tasks/text-classification/inference.d.ts +3 -0
  34. package/dist/esm/tasks/text-classification/inference.d.ts.map +1 -1
  35. package/dist/esm/tasks/video-classification/inference.d.ts +3 -0
  36. package/dist/esm/tasks/video-classification/inference.d.ts.map +1 -1
  37. package/package.json +1 -1
  38. package/src/local-apps.spec.ts +123 -0
  39. package/src/local-apps.ts +37 -18
  40. package/src/model-libraries-snippets.spec.ts +54 -0
  41. package/src/model-libraries-snippets.ts +24 -11
  42. package/src/tasks/audio-classification/inference.ts +3 -0
  43. package/src/tasks/audio-classification/spec/input.json +2 -1
  44. package/src/tasks/image-classification/inference.ts +3 -0
  45. package/src/tasks/image-classification/spec/input.json +2 -1
  46. package/src/tasks/text-classification/inference.ts +3 -0
  47. package/src/tasks/text-classification/spec/input.json +2 -1
  48. package/src/tasks/video-classification/inference.ts +3 -0
  49. package/src/tasks/video-classification/spec/input.json +2 -1
@@ -22,7 +22,8 @@
22
22
  "properties": {
23
23
  "function_to_apply": {
24
24
  "title": "AudioClassificationOutputTransform",
25
- "$ref": "/inference/schemas/common-definitions.json#/definitions/ClassificationOutputTransform"
25
+ "$ref": "/inference/schemas/common-definitions.json#/definitions/ClassificationOutputTransform",
26
+ "description": "The function to apply to the model outputs in order to retrieve the scores."
26
27
  },
27
28
  "top_k": {
28
29
  "type": "integer",
@@ -24,6 +24,9 @@ export interface ImageClassificationInput {
24
24
  * Additional inference parameters for Image Classification
25
25
  */
26
26
  export interface ImageClassificationParameters {
27
+ /**
28
+ * The function to apply to the model outputs in order to retrieve the scores.
29
+ */
27
30
  function_to_apply?: ClassificationOutputTransform;
28
31
  /**
29
32
  * When specified, limits the output to the top K most probable classes.
@@ -22,7 +22,8 @@
22
22
  "properties": {
23
23
  "function_to_apply": {
24
24
  "title": "ImageClassificationOutputTransform",
25
- "$ref": "/inference/schemas/common-definitions.json#/definitions/ClassificationOutputTransform"
25
+ "$ref": "/inference/schemas/common-definitions.json#/definitions/ClassificationOutputTransform",
26
+ "description": "The function to apply to the model outputs in order to retrieve the scores."
26
27
  },
27
28
  "top_k": {
28
29
  "type": "integer",
@@ -23,6 +23,9 @@ export interface TextClassificationInput {
23
23
  * Additional inference parameters for Text Classification
24
24
  */
25
25
  export interface TextClassificationParameters {
26
+ /**
27
+ * The function to apply to the model outputs in order to retrieve the scores.
28
+ */
26
29
  function_to_apply?: ClassificationOutputTransform;
27
30
  /**
28
31
  * When specified, limits the output to the top K most probable classes.
@@ -22,7 +22,8 @@
22
22
  "properties": {
23
23
  "function_to_apply": {
24
24
  "title": "TextClassificationOutputTransform",
25
- "$ref": "/inference/schemas/common-definitions.json#/definitions/ClassificationOutputTransform"
25
+ "$ref": "/inference/schemas/common-definitions.json#/definitions/ClassificationOutputTransform",
26
+ "description": "The function to apply to the model outputs in order to retrieve the scores."
26
27
  },
27
28
  "top_k": {
28
29
  "type": "integer",
@@ -27,6 +27,9 @@ export interface VideoClassificationParameters {
27
27
  * The sampling rate used to select frames from the video.
28
28
  */
29
29
  frame_sampling_rate?: number;
30
+ /**
31
+ * The function to apply to the model outputs in order to retrieve the scores.
32
+ */
30
33
  function_to_apply?: ClassificationOutputTransform;
31
34
  /**
32
35
  * The number of sampled frames to consider for classification.
@@ -21,7 +21,8 @@
21
21
  "properties": {
22
22
  "function_to_apply": {
23
23
  "title": "TextClassificationOutputTransform",
24
- "$ref": "/inference/schemas/common-definitions.json#/definitions/ClassificationOutputTransform"
24
+ "$ref": "/inference/schemas/common-definitions.json#/definitions/ClassificationOutputTransform",
25
+ "description": "The function to apply to the model outputs in order to retrieve the scores."
25
26
  },
26
27
  "num_frames": {
27
28
  "type": "integer",