Skip to content

Commit

Permalink
fix: add param to constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
tboquet committed Sep 19, 2023
1 parent 4077d51 commit 48d8e1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tasknet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ def load_pipeline(
] += adapter.Z[task_index]

pipe = TextClassificationPipeline(
model=model, tokenizer=tokenizer, device=device, return_all_scores=True
model=model,
tokenizer=tokenizer,
device=device,
return_all_scores=return_all_scores,
)
return pipe

0 comments on commit 48d8e1a

Please sign in to comment.