Skip to content

Commit

Permalink
audio classification
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin committed Aug 29, 2024
1 parent 35e7ddc commit 4f7787a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/tasks/src/tasks/audio-classification/inference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
*/
export interface AudioClassificationInput {
/**
* The input audio data
* The input audio data as a base64-encoded string. If no `parameters` are provided, you can
* also provide the audio data as a raw bytes payload.
*/
inputs: unknown;
inputs: string;
/**
* Additional inference parameters
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"type": "object",
"properties": {
"inputs": {
"description": "The input audio data"
"description": "The input audio data as a base64-encoded string. If no `parameters` are provided, you can also provide the audio data as a raw bytes payload.",
"type": "string"
},
"parameters": {
"description": "Additional inference parameters",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"description": "Outputs for Audio Classification inference",
"type": "array",
"items": {
"type": "object",
"$ref": "/inference/schemas/common-definitions.json#/definitions/ClassificationOutput"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"title": "ImageClassificationOutput",
"type": "array",
"items": {
"type": "object",
"$ref": "/inference/schemas/common-definitions.json#/definitions/ClassificationOutput"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"title": "TextClassificationOutput",
"type": "array",
"items": {
"type": "object",
"$ref": "/inference/schemas/common-definitions.json#/definitions/ClassificationOutput"
}
}

0 comments on commit 4f7787a

Please sign in to comment.