Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, pipeline
|
|
3 |
import torch
|
4 |
|
5 |
class EndpointHandler:
|
6 |
-
def __init__(self, path="
|
7 |
# Load model and processor from path
|
8 |
self.model = AutoModelForSeq2SeqLM.from_pretrained(path)
|
9 |
self.tokenizer = AutoTokenizer.from_pretrained(path)
|
|
|
3 |
import torch
|
4 |
|
5 |
class EndpointHandler:
|
6 |
+
def __init__(self, path=""):
|
7 |
# Load model and processor from path
|
8 |
self.model = AutoModelForSeq2SeqLM.from_pretrained(path)
|
9 |
self.tokenizer = AutoTokenizer.from_pretrained(path)
|