sanchit-gandhi HF staff commited on
Commit
bd0efe4
1 Parent(s): 9f18ffc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -329,7 +329,7 @@ predict utterance level timestamps by passing `return_timestamps=True`:
329
  >>> ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
330
  >>> sample = ds[0]["audio"]
331
 
332
- >>> prediction = pipe(sample)["text"]
333
  " Mr. Quilter is the apostle of the middle classes, and we are glad to welcome his gospel."
334
 
335
  >>> # we can also return timestamps for the predictions
 
329
  >>> ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
330
  >>> sample = ds[0]["audio"]
331
 
332
+ >>> prediction = pipe(sample.copy())["text"]
333
  " Mr. Quilter is the apostle of the middle classes, and we are glad to welcome his gospel."
334
 
335
  >>> # we can also return timestamps for the predictions