Xenova HF staff commited on
Commit
b4ed461
·
verified ·
1 Parent(s): e9a3a57

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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(await read_audio(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 },