Spaces:
Build error
Build error
update app
Browse files
weakly_supervised_parser/model/trainer.py
CHANGED
@@ -99,7 +99,7 @@ class InsideOutsideStringClassifier:
|
|
99 |
)
|
100 |
|
101 |
def load_model(self, pre_trained_model_path):
|
102 |
-
self.model = InferenceSession(pre_trained_model_path, providers=["CUDAExecutionProvider", "CPUExecutionProvider"])
|
103 |
self.tokenizer = AutoTokenizer.from_pretrained(self.model_name_or_path, use_fast=True)
|
104 |
|
105 |
def preprocess_function(self, data):
|
|
|
99 |
)
|
100 |
|
101 |
def load_model(self, pre_trained_model_path):
|
102 |
+
self.model = InferenceSession(pre_trained_model_path, providers=["CPUExecutionProvider"]) #providers=["CUDAExecutionProvider", "CPUExecutionProvider"])
|
103 |
self.tokenizer = AutoTokenizer.from_pretrained(self.model_name_or_path, use_fast=True)
|
104 |
|
105 |
def preprocess_function(self, data):
|