From 52abfb8a97e1ccea2816e9ce96edc3ebbdc6d6ed Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Tue, 28 Nov 2023 10:18:51 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B[bugfix]=20typo=20WIGHTS=20->=20WEI?= =?UTF-8?q?GHTS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 4 ++-- model.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index c1cc4759..34a0d341 100644 --- a/config.py +++ b/config.py @@ -65,8 +65,8 @@ class Config: return self._DOCUMENTS_URL @property - def CTRANSLATE2_WIGHTS(self): - return self._CTRANSLATE2_WIGHTS + def CTRANSLATE2_WEIGHTS(self): + return self._CTRANSLATE2_WEIGHTS @property def MAX_MIC_ENERGY_THRESHOLD(self): diff --git a/model.py b/model.py index ef035613..36de1262 100644 --- a/model.py +++ b/model.py @@ -72,7 +72,7 @@ class Model: self.speaker_audio_recorder = None self.speaker_energy_recorder = None self.speaker_energy_plot_progressbar = None - self.translator = Translator(config.PATH_LOCAL, config.CTRANSLATE2_WIGHTS[config.WEIGHT_TYPE]) + self.translator = Translator(config.PATH_LOCAL, config.CTRANSLATE2_WEIGHTS[config.WEIGHT_TYPE]) self.keyword_processor = KeywordProcessor() def resetTranslator(self):