Skip to content

Commit

Permalink
Update instructor.py
Browse files Browse the repository at this point in the history
Thanks for @racinmat for reminding me to change this.
  • Loading branch information
BBC-Esq authored Aug 24, 2024
1 parent f7d6914 commit 9b8bb58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions InstructorEmbedding/instructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ def encode(
input_was_string = True

if device is None:
device = self._target_device
device = self.device

self.to(device)

Expand Down Expand Up @@ -690,4 +690,4 @@ def encode(
if input_was_string:
all_embeddings = all_embeddings[0]

return all_embeddings
return all_embeddings

0 comments on commit 9b8bb58

Please sign in to comment.