logo
Browse Source

Update README

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
Jael Gu 2 years ago
parent
commit
5a0b23e206
  1. 8
      README.md

8
README.md

@ -33,12 +33,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.dpr(model_name="facebook/dpr-ctx_encoder-single-nq-base") \
.to_list()
towhee.dc(["Hello, world."]) \
.text_embedding.dpr(model_name="facebook/dpr-ctx_encoder-single-nq-base")
```
<br />

Loading…
Cancel
Save