diff --git a/README.md b/README.md index 96ddeb3..12527d3 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,16 @@ Generate embeddings for the audio "test.wav". *Write a pipeline with explicit inputs/outputs name specifications:* ```python +from towhee.dc2 import pipe, ops, DataCollection +p = ( + pipe.input('path') + .map('path', 'frame', ops.audio_decode.ffmpeg()) + .map('frame', 'vecs', ops.audio_embedding.clmr()) + .output('path', 'vecs') +) + +DataCollection(p('./test.wav')).show() ```