logo
Browse Source

Add results

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
Jael Gu 3 years ago
parent
commit
98212f64c5
  1. 18
      README.md
  2. BIN
      result.png

18
README.md

@ -22,10 +22,26 @@ to generate a text embedding for the sentence "Hello, world.".
```python
import towhee
towhee.dc(["Hello, world."]) \
(
towhee.dc(["Hello, world."])
.text_embedding.transformers(model_name="distilbert-base-cased")
)
```
*Write a same pipeline with explicit inputs/outputs name specifications:*
```python
import towhee
(
towhee.dc['text'](["Hello, world."])
.text_embedding.transformers['text', 'vec'](model_name="distilbert-base-cased")
.show()
)
```
<img src="./result.png" width="800px"/>
<br />
## Factory Constructor

BIN
result.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Loading…
Cancel
Save