diff options
author | Lia Lenckowski <lialenck@protonmail.com> | 2023-09-07 01:37:34 +0200 |
---|---|---|
committer | Lia Lenckowski <lialenck@protonmail.com> | 2023-09-07 01:37:34 +0200 |
commit | c4b03717914e5c907f7f47dc2a85df6b57763c58 (patch) | |
tree | 926acc5e5497a0539ca18a936fc38029561e7417 /test.py | |
parent | 51007f5b8ff6d5960ac034854ceae1ab15237b6a (diff) | |
download | embeddings-sort-c4b03717914e5c907f7f47dc2a85df6b57763c58.tar embeddings-sort-c4b03717914e5c907f7f47dc2a85df6b57763c58.tar.bz2 embeddings-sort-c4b03717914e5c907f7f47dc2a85df6b57763c58.tar.zst |
add content embedder
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/test.py b/test.py deleted file mode 100644 index 317eaf0..0000000 --- a/test.py +++ /dev/null @@ -1,11 +0,0 @@ -from PIL import Image -from imgbeddings import imgbeddings -import sys - -b = imgbeddings() -for p in sys.argv[1:]: - f = open(p, "rb") - im = Image.open(f) - em = b.to_embeddings(im) - print(em) -print(f"embedded {len(sys.argv[1:])} images.") |