Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ model, preprocess = clip.load("ViT-B/32", device=device)
|
|
8 |
|
9 |
def clip(image, text):
|
10 |
|
11 |
-
text = text.split(
|
12 |
image = preprocess(image).unsqueeze(0).to(device)
|
13 |
text = clip.tokenize(text).to(device)
|
14 |
|
|
|
8 |
|
9 |
def clip(image, text):
|
10 |
|
11 |
+
text = text.tobytes().decode('utf-8').split(',')
|
12 |
image = preprocess(image).unsqueeze(0).to(device)
|
13 |
text = clip.tokenize(text).to(device)
|
14 |
|