Amitai Getzler
commited on
Commit
·
02ca591
1
Parent(s):
76b5a9e
:heavy_plus_sign: Add
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -10,7 +10,7 @@ from typing import Dict, Any
|
|
10 |
class EndpointHandler:
|
11 |
def __init__(self, path="hf-hub:Styld/marqo-fashionSigLIP"):
|
12 |
self.model, self.preprocess_train, self.preprocess_val = (
|
13 |
-
open_clip.create_model_and_transforms("hf-hub:Styld/marqo-fashionSigLIP",device=
|
14 |
)
|
15 |
self.tokenizer = open_clip.get_tokenizer("hf-hub:Styld/marqo-fashionSigLIP")
|
16 |
|
|
|
10 |
class EndpointHandler:
|
11 |
def __init__(self, path="hf-hub:Styld/marqo-fashionSigLIP"):
|
12 |
self.model, self.preprocess_train, self.preprocess_val = (
|
13 |
+
open_clip.create_model_and_transforms("hf-hub:Styld/marqo-fashionSigLIP", device=torch.device('cuda'))
|
14 |
)
|
15 |
self.tokenizer = open_clip.get_tokenizer("hf-hub:Styld/marqo-fashionSigLIP")
|
16 |
|