"docs/vscode:/vscode.git/clone" did not exist on "c7f076a00ee54f777b3d3322c91bc11489a47950"
Unverified Commit afb66749 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Update `AutomaticSpeechRecognitionPipeline` doc example (#20512)


Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 04c653a3
...@@ -115,7 +115,7 @@ class AutomaticSpeechRecognitionPipeline(ChunkPipeline): ...@@ -115,7 +115,7 @@ class AutomaticSpeechRecognitionPipeline(ChunkPipeline):
>>> transcriber = pipeline(model="openai/whisper-base") >>> transcriber = pipeline(model="openai/whisper-base")
>>> transcriber("https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/1.flac") >>> transcriber("https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/1.flac")
{'text': ' He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick, peppered flour fat and sauce.'} {'text': ' He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick, peppered flour-fatten sauce.'}
``` ```
Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment