From 37bbfccb0166b174c3cb399497f6b7465f97311b Mon Sep 17 00:00:00 2001 From: aoife cassidy Date: Mon, 23 Dec 2024 23:16:31 +0200 Subject: [PATCH] fix(turn-detector): fix int32/64 errors on Windows (#1285) --- .changeset/tricky-spiders-change.md | 5 +++++ .../livekit/plugins/turn_detector/eou.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/tricky-spiders-change.md diff --git a/.changeset/tricky-spiders-change.md b/.changeset/tricky-spiders-change.md new file mode 100644 index 000000000..a017624fc --- /dev/null +++ b/.changeset/tricky-spiders-change.md @@ -0,0 +1,5 @@ +--- +"livekit-plugins-turn-detector": patch +--- + +fix int32/64 errors on Windows diff --git a/livekit-plugins/livekit-plugins-turn-detector/livekit/plugins/turn_detector/eou.py b/livekit-plugins/livekit-plugins-turn-detector/livekit/plugins/turn_detector/eou.py index acb915ab5..8c8090946 100644 --- a/livekit-plugins/livekit-plugins-turn-detector/livekit/plugins/turn_detector/eou.py +++ b/livekit-plugins/livekit-plugins-turn-detector/livekit/plugins/turn_detector/eou.py @@ -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)