kwang2049 commited on
Commit
04d2050
1 Parent(s): 30adfc7

gpu or cpu

Browse files
Files changed (1) hide show
  1. pipeline.py +0 -1
pipeline.py CHANGED
@@ -15,7 +15,6 @@ class PreTrainedPipeline:
15
  config=Params.from_file(os.path.join(path, CHECKPOINT, "config.json")),
16
  )
17
  self.predictor = CorefPredictor.from_extracted_archive(archive_content)
18
- self.predictor.set_device("cpu")
19
 
20
  def __call__(self, data: str) -> Dict[str, Any]:
21
  """
 
15
  config=Params.from_file(os.path.join(path, CHECKPOINT, "config.json")),
16
  )
17
  self.predictor = CorefPredictor.from_extracted_archive(archive_content)
 
18
 
19
  def __call__(self, data: str) -> Dict[str, Any]:
20
  """