Change from rbanfield to openai vit model
Browse files- handler.py +2 -2
handler.py
CHANGED
|
@@ -13,8 +13,8 @@ logger.setLevel('INFO')
|
|
| 13 |
|
| 14 |
class EndpointHandler():
|
| 15 |
def __init__(self, path=""):
|
| 16 |
-
self.model = CLIPModel.from_pretrained("
|
| 17 |
-
self.processor = CLIPProcessor.from_pretrained("
|
| 18 |
|
| 19 |
def __call__(self, data):
|
| 20 |
try:
|
|
|
|
| 13 |
|
| 14 |
class EndpointHandler():
|
| 15 |
def __init__(self, path=""):
|
| 16 |
+
self.model = CLIPModel.from_pretrained("openai/clip-vit-large-patch14").to(device)
|
| 17 |
+
self.processor = CLIPProcessor.from_pretrained("openai/clip-vit-large-patch14")
|
| 18 |
|
| 19 |
def __call__(self, data):
|
| 20 |
try:
|