diff --git a/README.md b/README.md index 16787d1..6f8106c 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,12 @@ and use the pretrained ISC model ('resnet50') to generate an image embedding. ```python import towhee -towhee.glob('./towhee.jpg') \ - .image_decode() \ - .image_embedding.isc() \ - .show() +( + towhee.glob('./towhee.jpg') + .image_decode() + .image_embedding.isc() + .show() +) ``` @@ -35,11 +37,13 @@ towhee.glob('./towhee.jpg') \ ```python import towhee -towhee.glob['path']('./towhee.jpg') \ - .image_decode['path', 'img']() \ - .image_embedding.isc['img', 'vec']() \ - .select['img', 'vec']() \ - .show() +( + towhee.glob['path']('./towhee.jpg') + .image_decode['path', 'img']() + .image_embedding.isc['img', 'vec']() + .select['img', 'vec']() + .show() +) ```