The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community: fix CPU support for FasterWhisperParser (implicit compute type for WhisperModel) (#30263)
qonnop747efa16ec7b
diff --git a/libs/community/langchain_community/document_loaders/parsers/audio.py b/libs/community/langchain_community/document_loaders/parsers/audio.pyindex bdcf72b96b..8a873f4b3a 100644--- a/libs/community/langchain_community/document_loaders/parsers/audio.py+++ b/libs/community/langchain_community/document_loaders/parsers/audio.py@@ -673,9 +673,7 @@ class FasterWhisperParser(BaseBlobParser):file_obj = io.BytesIO(audio.export(format="mp3").read())# Transcribe- model = WhisperModel(- self.model_size, device=self.device, compute_type="float16"- )+ model = WhisperModel(self.model_size, device=self.device)segments, info = model.transcribe(file_obj, beam_size=5)