From 2392eee02b89d9e8575140a8e9b09214571b65cf Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Wed, 1 Feb 2023 11:22:16 +0800 Subject: [PATCH] Update readme Signed-off-by: Jael Gu --- README.md | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/README.md b/README.md index 57f2b7a..1f4b524 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,8 @@ This operator is implemented with pre-trained models from [Huggingface Transform Use the pre-trained model 'distilbert-base-cased' to generate a text embedding for the sentence "Hello, world.". -*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 @@ -34,18 +33,6 @@ DataCollection(p('Hello, world.')).show() -- **option 2:** - -```python -import towhee - -( - towhee.dc['text'](["Hello, world."]) - .text_embedding.transformers['text', 'vec'](model_name="distilbert-base-cased") - .show() -) -``` -
## Factory Constructor