rbanfield commited on
Commit
9c170f0
·
1 Parent(s): dc1351d

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -9,7 +9,7 @@ device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
9
 
10
  class EndpointHandler():
11
  def __init__(self, path=""):
12
- self.model = CLIPModel.from_pretrained("openai/clip-vit-large-patch14").to("cpu")
13
  self.processor = CLIPProcessor.from_pretrained("openai/clip-vit-large-patch14")
14
 
15
  def __call__(self, data):
 
9
 
10
  class EndpointHandler():
11
  def __init__(self, path=""):
12
+ self.model = CLIPModel.from_pretrained("openai/clip-vit-large-patch14").to(device)
13
  self.processor = CLIPProcessor.from_pretrained("openai/clip-vit-large-patch14")
14
 
15
  def __call__(self, data):