diff --git a/README.md b/README.md index 85afa8d..f2172b1 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,10 @@ to generate a text embedding for the sentence "Hello, world.". *Write the pipeline*: ```python -from towhee import dc +import towhee - -dc.stream(["Hello, world."]) \ - .text_embedding.transformers(model_name="distilbert-base-cased") \ - .to_list() +towhee.dc(["Hello, world."]) \ + .text_embedding.transformers(model_name="distilbert-base-cased") ```