Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
|
@@ -10,8 +10,8 @@ device = 0 if torch.cuda.is_available() else -1
|
|
| 10 |
|
| 11 |
class EndpointHandler():
|
| 12 |
def __init__(self, path=""):
|
| 13 |
-
self.model = CLIPModel.from_pretrained("openai/clip-vit-large-patch14")
|
| 14 |
-
self.processor = CLIPProcessor.from_pretrained("openai/clip-vit-large-patch14")
|
| 15 |
|
| 16 |
def __call__(self, data: Any) -> List[float]:
|
| 17 |
inputs = data.pop("inputs", data)
|
|
|
|
| 10 |
|
| 11 |
class EndpointHandler():
|
| 12 |
def __init__(self, path=""):
|
| 13 |
+
self.model = CLIPModel.from_pretrained("openai/clip-vit-large-patch14-336")
|
| 14 |
+
self.processor = CLIPProcessor.from_pretrained("openai/clip-vit-large-patch14-336")
|
| 15 |
|
| 16 |
def __call__(self, data: Any) -> List[float]:
|
| 17 |
inputs = data.pop("inputs", data)
|