We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60db90f commit bc84fcaCopy full SHA for bc84fca
extensions/firestore-huggingface-inference-api/functions/src/tasks/text-classification.ts
@@ -26,7 +26,9 @@ export function textClassification(
26
return inference.request<TextClassificationOutput>(options);
27
}
28
29
-function validateInput(inputs: any) {
+function validateInput(data: any) {
30
+ const { inputs } = data;
31
+
32
if (!inputs || typeof inputs !== 'string') {
33
throw new Error('Field `inputs` must be provided and must be a string');
34
0 commit comments