Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import AutoProcessor, LlavaForConditionalGeneration
|
|
6 |
|
7 |
class EndpointHandler():
|
8 |
def __init__(self, path=""):
|
9 |
-
model_id =
|
10 |
self.model = LlavaForConditionalGeneration.from_pretrained(
|
11 |
model_id,
|
12 |
torch_dtype=torch.float16,
|
|
|
6 |
|
7 |
class EndpointHandler():
|
8 |
def __init__(self, path=""):
|
9 |
+
model_id = path
|
10 |
self.model = LlavaForConditionalGeneration.from_pretrained(
|
11 |
model_id,
|
12 |
torch_dtype=torch.float16,
|