ceiteach commited on
Commit
ecc6f18
1 Parent(s): 0d3ef1c

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -4,7 +4,7 @@ import json
4
 
5
  class EndpointHandler():
6
  def __init__(self, path="ceiteach/chart-no-pretrain-llama31-unsloth"):
7
- model_name = path
8
  tokenizer = AutoTokenizer.from_pretrained(model_name)
9
  model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype = torch.float16, device_map="auto")
10
  self.model = model
 
4
 
5
  class EndpointHandler():
6
  def __init__(self, path="ceiteach/chart-no-pretrain-llama31-unsloth"):
7
+ model_name = "ceiteach/chart-no-pretrain-llama31-unsloth"
8
  tokenizer = AutoTokenizer.from_pretrained(model_name)
9
  model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype = torch.float16, device_map="auto")
10
  self.model = model