Dmitry Chaplinsky commited on
Commit
22e7347
1 Parent(s): 062350e

And another one

Browse files
Files changed (1) hide show
  1. pipeline.py +3 -3
pipeline.py CHANGED
@@ -6,9 +6,9 @@ class PreTrainedPipeline:
6
  def __init__(self, path=""):
7
  from huggingface_hub import hf_hub_download
8
 
9
- hf_hub_download(repo_id="dchaplinsky/flair-uk-forward", filename="best-lm.pt")
10
-
11
- self.model = LanguageModel.load_language_model("best-lm.pt")
12
 
13
  def __call__(self, inputs: str) -> List[Dict]:
14
  """
 
6
  def __init__(self, path=""):
7
  from huggingface_hub import hf_hub_download
8
 
9
+ self.model = LanguageModel.load_language_model(
10
+ hf_hub_download(repo_id="dchaplinsky/flair-uk-forward", filename="best-lm.pt")
11
+ )
12
 
13
  def __call__(self, inputs: str) -> List[Dict]:
14
  """