LAP-DEV commited on
Commit
9d1cb90
·
verified ·
1 Parent(s): ad58e5f

Update modules/whisper/faster_whisper_inference.py

Browse files
modules/whisper/faster_whisper_inference.py CHANGED
@@ -93,7 +93,7 @@ class FasterWhisperInference(WhisperBase):
93
  chunk_length=params.chunk_length,
94
  hallucination_silence_threshold=params.hallucination_silence_threshold,
95
  hotwords=params.hotwords,
96
- language_detection_threshold=params.language_detection_threshold,
97
  language_detection_segments=params.language_detection_segments,
98
  prompt_reset_on_temperature=params.prompt_reset_on_temperature,
99
  )
 
93
  chunk_length=params.chunk_length,
94
  hallucination_silence_threshold=params.hallucination_silence_threshold,
95
  hotwords=params.hotwords,
96
+ language_detection_threshold=float(params.language_detection_threshold),
97
  language_detection_segments=params.language_detection_segments,
98
  prompt_reset_on_temperature=params.prompt_reset_on_temperature,
99
  )