Kalaoke commited on
Commit
943a701
·
1 Parent(s): 72528aa

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -217,7 +217,7 @@ class EndpointHandler():
217
  )
218
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
219
 
220
- tokenizer = AutoTokenizer.from_pretrained(checkpoint)
221
 
222
  tasks = [
223
  Task(id=0, name='label_classification', type='seq_classification', num_labels=5),
 
217
  )
218
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
219
 
220
+ tokenizer = AutoTokenizer.from_pretrained(path)
221
 
222
  tasks = [
223
  Task(id=0, name='label_classification', type='seq_classification', num_labels=5),