From 954244df09bbef0c4ebe654b15041aed7e86962b Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Thu, 7 Apr 2022 22:18:18 +0800 Subject: [PATCH] Update README Signed-off-by: Jael Gu --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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") ```