From 2bd19322651c131d29da2f5eed5f5093fa575190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxi=20Quo=C3=9F?= Date: Mon, 29 May 2023 00:48:13 +0200 Subject: [PATCH] use temperature=0 as workaround for model crash https://github.com/guillaumekln/faster-whisper/issues/71 --- lib/whisper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/whisper.py b/lib/whisper.py index 3eb441bc..d9253813 100644 --- a/lib/whisper.py +++ b/lib/whisper.py @@ -30,7 +30,8 @@ def run(self, m4a: str, model: str, device: str, output: str) -> None: f"Started: m4a={m4a}, model={model}, device={device}") model = WhisperModel(model_size_or_path=model, device=device) - segments, info = model.transcribe(m4a, beam_size=5, language="de") + segments, info = model.transcribe( + m4a, beam_size=5, language="de", temperature=0) filename = os.path.splitext(m4a)[0] final_json = {