Leches33 commited on
Commit
9590e6d
·
verified ·
1 Parent(s): 8d3e308

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -34,7 +34,7 @@ class EndpointHandler:
34
  def __init__(self, path=""):
35
  # Cargar el modelo
36
  self.model = MiniGPT()
37
- checkpoint = os.path.join(path, "mini_gpt.pth")
38
  self.model.load_state_dict(torch.load(checkpoint, map_location="cpu"))
39
  self.model.eval()
40
 
 
34
  def __init__(self, path=""):
35
  # Cargar el modelo
36
  self.model = MiniGPT()
37
+ checkpoint = os.path.join(path, "pytorch_model.bin")
38
  self.model.load_state_dict(torch.load(checkpoint, map_location="cpu"))
39
  self.model.eval()
40