💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Update transcription pipeline to use AutoModelForCTC, closes #238
davidmezzetti6816a63adf69
diff --git a/src/python/txtai/pipeline/audio/transcription.py b/src/python/txtai/pipeline/audio/transcription.pyindex d77c7aca..174f97ea 100644--- a/src/python/txtai/pipeline/audio/transcription.py+++ b/src/python/txtai/pipeline/audio/transcription.py@@ -9,7 +9,7 @@ try:except (ImportError, OSError):SOUNDFILE = False-from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor+from transformers import AutoModelForCTC, Wav2Vec2Processorfrom ..hfmodel import HFModel@@ -38,7 +38,7 @@ class Transcription(HFModel):raise ImportError("SoundFile library not installed or libsndfile not found")# load model and processor- self.model = Wav2Vec2ForCTC.from_pretrained(self.path)+ self.model = AutoModelForCTC.from_pretrained(self.path)self.processor = Wav2Vec2Processor.from_pretrained(self.path)# Move model to device