From 29e6d3fa104525f928ad8429b5dddf85232f3492 Mon Sep 17 00:00:00 2001 From: Tokyo Date: Mon, 9 Dec 2024 03:40:24 +0000 Subject: [PATCH] :bug: fix demo --- demo/src/Demo/Demo.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/demo/src/Demo/Demo.tsx b/demo/src/Demo/Demo.tsx index 99faa52..969939b 100644 --- a/demo/src/Demo/Demo.tsx +++ b/demo/src/Demo/Demo.tsx @@ -55,13 +55,18 @@ const data = [ /** Configuration (optional) */ const config = { - provider: '${provider}', - model: '${model}', similarity: '${similarity}', }; /** Perform classification */ -classify({ labels, data, config, apiKey }) +classify({ + provider: '${provider}', + model: '${model}', + labels, + data, + config, + apiKey +}) .then((results) => { console.log(results); })