Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -5,7 +5,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
5 |
|
6 |
|
7 |
class EndpointHandler:
|
8 |
-
def __init__(self, path="
|
9 |
# load model and tokenizer from path
|
10 |
self.tokenizer = AutoTokenizer.from_pretrained(path)
|
11 |
self.model = AutoModelForCausalLM.from_pretrained(
|
|
|
5 |
|
6 |
|
7 |
class EndpointHandler:
|
8 |
+
def __init__(self, path=""):
|
9 |
# load model and tokenizer from path
|
10 |
self.tokenizer = AutoTokenizer.from_pretrained(path)
|
11 |
self.model = AutoModelForCausalLM.from_pretrained(
|