Skip to content

Commit

Permalink
Fix minor bug in transformers ext
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik4949 committed Nov 28, 2023
1 parent ea8ec01 commit d673f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superduperdb/ext/transformers/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def compute_metrics(eval_pred):

def _predict(self, X, one: bool = False, **kwargs):
if self.pipeline is not None:
out = self.pipeline(X, **self.preprocess_kwargs, **kwargs)
out = self.pipeline(X, **kwargs)
out = [r['label'] for r in out]
for i, p in enumerate(out):
if re.match(r'^LABEL_[0-9]+', p):
Expand Down

0 comments on commit d673f95

Please sign in to comment.