vision
nicklorch commited on
Commit
5108010
·
1 Parent(s): c6dbef6

tensor fix

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -13,7 +13,7 @@ logger.setLevel('INFO')
13
 
14
  class EndpointHandler():
15
  def __init__(self, path=""):
16
- self.model = CLIPModel.from_pretrained("rbanfield/clip-vit-large-patch14").to("cpu")
17
  self.processor = CLIPProcessor.from_pretrained("rbanfield/clip-vit-large-patch14")
18
 
19
  def __call__(self, data):
 
13
 
14
  class EndpointHandler():
15
  def __init__(self, path=""):
16
+ self.model = CLIPModel.from_pretrained("rbanfield/clip-vit-large-patch14").to(device)
17
  self.processor = CLIPProcessor.from_pretrained("rbanfield/clip-vit-large-patch14")
18
 
19
  def __call__(self, data):