Skip to content

Commit

Permalink
fix(turn-detector): fix int32/64 errors on Windows (#1285)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp authored Dec 23, 2024
1 parent 799a53d commit 37bbfcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tricky-spiders-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-plugins-turn-detector": patch
---

fix int32/64 errors on Windows
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def run(self, data: bytes) -> bytes | None:
return_tensors="np",
)

input_dict = {"input_ids": inputs["input_ids"]}
input_dict = {"input_ids": np.array(inputs["input_ids"], dtype=np.int64)}

# Run inference
outputs = self._session.run(["logits"], input_dict)
Expand Down

0 comments on commit 37bbfcc

Please sign in to comment.