Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -13,12 +13,7 @@ npm i @huggingface/transformers
|
|
13 |
```js
|
14 |
import { pipeline } from '@huggingface/transformers';
|
15 |
|
16 |
-
|
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 |
```
|