909ahmed commited on
Commit
d0bdc68
·
verified ·
1 Parent(s): 479108b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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