moooji commited on
Commit
d678bd7
·
1 Parent(s): 0971f0d

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -7,7 +7,7 @@ from transformers import CLIPProcessor, CLIPModel
7
 
8
  class EndpointHandler():
9
  def __init__(self, path=""):
10
- self.model = CLIPModel.from_pretrained("openai/clip-vit-large-patch14-336", device_map="auto")
11
  self.processor = CLIPProcessor.from_pretrained("openai/clip-vit-large-patch14-336")
12
 
13
  def __call__(self, data: Any) -> List[float]:
 
7
 
8
  class EndpointHandler():
9
  def __init__(self, path=""):
10
+ self.model = CLIPModel.from_pretrained("openai/clip-vit-large-patch14-336")
11
  self.processor = CLIPProcessor.from_pretrained("openai/clip-vit-large-patch14-336")
12
 
13
  def __call__(self, data: Any) -> List[float]: