From 69bde91468ba47ac0daafca829b50527c03c81df Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Wed, 1 Feb 2023 11:29:08 +0800 Subject: [PATCH] Update readme Signed-off-by: Jael Gu --- README.md | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/README.md b/README.md index 3162218..fedcbd5 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,8 @@ The nnfp operator is suitable for audio fingerprinting. Generate embeddings for the audio "test.wav". -*Write a same pipeline with explicit inputs/outputs name specifications:* +*Write a pipeline with explicit inputs/outputs name specifications:* -- **option 1 (towhee>=0.9.0):** ```python from towhee.dc2 import pipe, ops, DataCollection @@ -36,19 +35,6 @@ DataCollection(p('test.wav')).show() ``` -- **option 2:** -```python -import towhee - -( - towhee.glob['path']('test.wav') - .audio_decode.ffmpeg['path', 'frames']() - .runas_op['frames', 'frames'](func=lambda x:[y[0] for y in x]) - .audio_embedding.nnfp['frames', 'vecs']() - .select['path', 'vecs']() - .show() -) -```
## Factory Constructor