whitphx HF Staff commited on
Commit
cacd4f5
·
verified ·
1 Parent(s): 7a32931

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +1 -6
README.md CHANGED
@@ -13,12 +13,7 @@ npm i @huggingface/transformers
13
  ```js
14
  import { pipeline } from '@huggingface/transformers';
15
 
16
- // Create the pipeline
17
- const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/whisper-medium', {
18
- dtype: 'fp32', // Options: "fp32", "fp16", "q8", "q4"
19
- });
20
-
21
- // Use the model
22
  const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav';
23
  const output = await transcriber(url);
24
  ```
 
13
  ```js
14
  import { pipeline } from '@huggingface/transformers';
15
 
16
+ const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/whisper-medium');
 
 
 
 
 
17
  const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav';
18
  const output = await transcriber(url);
19
  ```