Closed MahmoudAshraf97 closed 1 week ago
@MahmoudAshraf97 i check git+https://github.com/MahmoudAshraf97/faster-whisper.git@add_hotwords_batched and get error:
".../faster_whisper/transcribe.py", in line 487, in transcribe if not self.model.is_multilingual and language != "en": AttributeError: 'WhisperModel' object has no attribute 'is_multilingual'
fixed
@MahmoudAshraf97 i got another error after update:
"...faster_whisper/transcribe.py", line 545, in transcribe
all_language_probs=all_language_probs,
UnboundLocalError: local variable 'all_language_probs' referenced before assignment
@MahmoudAshraf97 i got another error after update:
"...faster_whisper/transcribe.py", line 545, in transcribe all_language_probs=all_language_probs, UnboundLocalError: local variable 'all_language_probs' referenced before assignment
Should be fixed
This PR aims to further refine
BatchedInferencePipeline
class to include more transcription options and other improvementsSummary:
temperature
hotwords
generate_segment_batched
function fromWhisperModel
toBatchedInferencePipeline