Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
|
2 |
import torch
|
3 |
|
4 |
-
class
|
5 |
def __init__(self, model_dir):
|
6 |
# Load the tokenizer
|
7 |
self.tokenizer = AutoTokenizer.from_pretrained(model_dir)
|
|
|
1 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
|
2 |
import torch
|
3 |
|
4 |
+
class EndpointHandler:
|
5 |
def __init__(self, model_dir):
|
6 |
# Load the tokenizer
|
7 |
self.tokenizer = AutoTokenizer.from_pretrained(model_dir)
|