|
@ -20,7 +20,7 @@ Read the text 'kids feeding and playing with the horse' to generate a text embed |
|
|
|
|
|
|
|
|
- Encode video (default): |
|
|
- Encode video (default): |
|
|
```python |
|
|
```python |
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
from towhee import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
p = ( |
|
|
p = ( |
|
|
pipe.input('video_path') \ |
|
|
pipe.input('video_path') \ |
|
@ -35,7 +35,7 @@ DataCollection(p('./demo_video.mp4')).show() |
|
|
|
|
|
|
|
|
- Encode text: |
|
|
- Encode text: |
|
|
```python |
|
|
```python |
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
from towhee import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
p = ( |
|
|
p = ( |
|
|
pipe.input('text') \ |
|
|
pipe.input('text') \ |
|
|