File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/inference/src/providers Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ interface Base64ImageGeneration {
80
80
interface OutputUrlImageGeneration {
81
81
output : string [ ] ;
82
82
}
83
+
83
84
interface AudioToAudioOutput {
84
85
blob : string ;
85
86
"content-type" : string ;
@@ -219,6 +220,7 @@ export class HFInferenceAutomaticSpeechRecognitionTask
219
220
return response ;
220
221
}
221
222
}
223
+
222
224
export class HFInferenceAudioToAudioTask extends HFInferenceTask implements AudioToAudioTaskHelper {
223
225
override async getResponse ( response : AudioToAudioOutput [ ] ) : Promise < AudioToAudioOutput [ ] > {
224
226
if ( ! Array . isArray ( response ) ) {
@@ -243,6 +245,7 @@ export class HFInferenceAudioToAudioTask extends HFInferenceTask implements Audi
243
245
return response ;
244
246
}
245
247
}
248
+
246
249
export class HFInferenceDocumentQuestionAnsweringTask
247
250
extends HFInferenceTask
248
251
implements DocumentQuestionAnsweringTaskHelper
You can’t perform that action at this time.
0 commit comments