Skip to content

Commit

Permalink
ensure correct dtype on windows (#1452)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeradf authored Feb 5, 2025
1 parent 84c2e90 commit c0e2db3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hungry-bees-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-plugins-turn-detector": patch
---

fix incorrect dtype on windows
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ def run(self, data: bytes) -> bytes | None:
truncation=True,
)
# Run inference
outputs = self._session.run(None, {"input_ids": inputs["input_ids"]})
outputs = self._session.run(
None, {"input_ids": inputs["input_ids"].astype("int64")}
)
eou_probability = outputs[0][0]
end_time = time.perf_counter()

Expand Down

0 comments on commit c0e2db3

Please sign in to comment.