Update README.md
Browse files
README.md
CHANGED
@@ -22,7 +22,7 @@ const classifier = await pipeline('audio-classification', 'Xenova/wav2vec2-base-
|
|
22 |
|
23 |
// Predict class
|
24 |
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/speech-commands_down.wav';
|
25 |
-
const output = await classifier(url, { top_k: 3});
|
26 |
console.log(output);
|
27 |
// [
|
28 |
// { label: 'down', score: 0.9998697638511658 },
|
|
|
22 |
|
23 |
// Predict class
|
24 |
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/speech-commands_down.wav';
|
25 |
+
const output = await classifier(url, { top_k: 3 });
|
26 |
console.log(output);
|
27 |
// [
|
28 |
// { label: 'down', score: 0.9998697638511658 },
|