From 84fd9835af6728355e7604143990b7beceba46a9 Mon Sep 17 00:00:00 2001 From: jhj0517 <97279763+jhj0517@users.noreply.github.com> Date: Sun, 20 Oct 2024 21:34:07 +0900 Subject: [PATCH] Fix localization bug --- modules/whisper/whisper_parameter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/whisper/whisper_parameter.py b/modules/whisper/whisper_parameter.py index 24d9d646..19115fc2 100644 --- a/modules/whisper/whisper_parameter.py +++ b/modules/whisper/whisper_parameter.py @@ -308,7 +308,7 @@ def to_yaml(self) -> Dict: data = { "whisper": { "model_size": self.model_size, - "lang": AUTOMATIC_DETECTION if self.lang is None else self.lang, + "lang": AUTOMATIC_DETECTION.unwrap() if self.lang is None else self.lang, "is_translate": self.is_translate, "beam_size": self.beam_size, "log_prob_threshold": self.log_prob_threshold,