Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -72,7 +72,7 @@ def model_infer(model, tokenizer, review, max_length=300):
|
|
72 |
class EndpointHandler():
|
73 |
def __init__(self, path=""):
|
74 |
# load model and tokenizer from path
|
75 |
-
self.tokenizer =
|
76 |
self.model = AutoModelForCausalLM.from_pretrained("Lin0He/text-summary-gpt2-short")
|
77 |
|
78 |
|
|
|
72 |
class EndpointHandler():
|
73 |
def __init__(self, path=""):
|
74 |
# load model and tokenizer from path
|
75 |
+
self.tokenizer = AutoTokenizer.from_pretrained("Lin0He/text-summary-gpt2-short")
|
76 |
self.model = AutoModelForCausalLM.from_pretrained("Lin0He/text-summary-gpt2-short")
|
77 |
|
78 |
|