aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorLia Lenckowski <lialenck@protonmail.com>2023-09-07 01:37:34 +0200
committerLia Lenckowski <lialenck@protonmail.com>2023-09-07 01:37:34 +0200
commitc4b03717914e5c907f7f47dc2a85df6b57763c58 (patch)
tree926acc5e5497a0539ca18a936fc38029561e7417 /test.py
parent51007f5b8ff6d5960ac034854ceae1ab15237b6a (diff)
downloadembeddings-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.py11
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.")