BlueDice commited on
Commit
ae1742d
·
1 Parent(s): cfe994b

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -25,7 +25,7 @@ class EndpointHandler():
25
 
26
  def __init__(self, path = ""):
27
  self.tokenizer = AutoTokenizer.from_pretrained(path)
28
- self.model = torch.load("torch_model.pt")
29
 
30
  def response(self, result, user_name):
31
  result = result.rsplit("Alice Gate:", 1)[1].split(f"{user_name}:",1)[0].strip()
 
25
 
26
  def __init__(self, path = ""):
27
  self.tokenizer = AutoTokenizer.from_pretrained(path)
28
+ self.model = torch.load(f"{path}/torch_model.pt")
29
 
30
  def response(self, result, user_name):
31
  result = result.rsplit("Alice Gate:", 1)[1].split(f"{user_name}:",1)[0].strip()