osanseviero commited on
Commit
37a3159
1 Parent(s): 24403c3

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -11,7 +11,7 @@ class PreTrainedPipeline():
11
  # Preload all the elements you are going to need at inference.
12
  # For instance your model, processors, tokenizer that might be needed.
13
  # This function is only called once, so do all the heavy processing I/O here"""
14
- self.model = BaseModel.from_pretrained("")
15
  self.sampling_rate = self.model.sample_rate
16
 
17
  def __call__(self, inputs: np.array) -> Tuple[np.array, int, List[str]]:
 
11
  # Preload all the elements you are going to need at inference.
12
  # For instance your model, processors, tokenizer that might be needed.
13
  # This function is only called once, so do all the heavy processing I/O here"""
14
+ self.model = BaseModel.from_pretrained(path)
15
  self.sampling_rate = self.model.sample_rate
16
 
17
  def __call__(self, inputs: np.array) -> Tuple[np.array, int, List[str]]: