logo
Browse Source

Update README

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
Jael Gu 2 years ago
parent
commit
26b3a0461b
  1. 9
      README.md

9
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()
```
<img src="./result.png" width="800px"/>

Loading…
Cancel
Save