Skip to content

Commit

Permalink
fix string (huggingface#18568)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwyattii authored and amyeroberts committed Oct 18, 2022
1 parent 0c0220a commit e97f675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/pipelines/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ def __init__(
elif device < 0:
self.device = torch.device("cpu")
else:
self.device = torch.device("cuda:{device}")
self.device = torch.device(f"cuda:{device}")
else:
self.device = device
self.binary_output = binary_output
Expand Down

0 comments on commit e97f675

Please sign in to comment.