atwine commited on
Commit
6f9e0c8
1 Parent(s): ed463ac

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -3,7 +3,7 @@ from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, pipeline
3
  import torch
4
 
5
  class EndpointHandler:
6
- def __init__(self, path="atwine/translation-en-lug-v6"):
7
  # Load model and processor from path
8
  self.model = AutoModelForSeq2SeqLM.from_pretrained(path)
9
  self.tokenizer = AutoTokenizer.from_pretrained(path)
 
3
  import torch
4
 
5
  class EndpointHandler:
6
+ def __init__(self, path=""):
7
  # Load model and processor from path
8
  self.model = AutoModelForSeq2SeqLM.from_pretrained(path)
9
  self.tokenizer = AutoTokenizer.from_pretrained(path)