zeroshot commited on
Commit
7c4cbdd
·
1 Parent(s): e0d8ae6

edit handler

Browse files
config.json → deployment/config.json RENAMED
File without changes
model.onnx → deployment/model.onnx RENAMED
File without changes
tokenizer.json → deployment/tokenizer.json RENAMED
File without changes
tokenizer_config.json → deployment/tokenizer_config.json RENAMED
File without changes
handler.py CHANGED
@@ -4,7 +4,7 @@ from time import perf_counter
4
 
5
  class EndpointHandler:
6
 
7
- def __init__(self, path=""):
8
 
9
  self.pipeline = Pipeline.create(task="text-classification", model_path=path)
10
 
 
4
 
5
  class EndpointHandler:
6
 
7
+ def __init__(self, path="deployment/model.onnx"):
8
 
9
  self.pipeline = Pipeline.create(task="text-classification", model_path=path)
10