From 26b3a0461bda6cae5944c891c74bdf8bb36bc2d3 Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Mon, 6 Feb 2023 19:04:52 +0800 Subject: [PATCH] Update README Signed-off-by: Jael Gu --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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() ```