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