gpu or cpu
Browse files- 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 |
"""
|