Commit
·
fc3fbd2
1
Parent(s):
24b7e35
Fix init
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -6,7 +6,7 @@ import requests
|
|
6 |
|
7 |
|
8 |
class EndpointHandler:
|
9 |
-
def __init__(self):
|
10 |
self.model = CLIPModel.from_pretrained("patrickjohncyh/fashion-clip")
|
11 |
self.processor = AutoProcessor.from_pretrained("patrickjohncyh/fashion-clip")
|
12 |
self.tokenizer = AutoTokenizer.from_pretrained("openai/clip-vit-base-patch32")
|
|
|
6 |
|
7 |
|
8 |
class EndpointHandler:
|
9 |
+
def __init__(self, path=""):
|
10 |
self.model = CLIPModel.from_pretrained("patrickjohncyh/fashion-clip")
|
11 |
self.processor = AutoProcessor.from_pretrained("patrickjohncyh/fashion-clip")
|
12 |
self.tokenizer = AutoTokenizer.from_pretrained("openai/clip-vit-base-patch32")
|