[WIP/TEST] faster-whisper model weight のダウンロード/ベリファイ処理を実装

This commit is contained in:
misyaguziya
2024-01-31 22:50:31 +09:00
parent 9cd1831ecb
commit 10b8d115a1
5 changed files with 111 additions and 52 deletions

View File

@@ -11,8 +11,14 @@ if __name__ == "__main__":
from models.translation.utils import downloadCTranslate2Weight
if config.USE_TRANSLATION_FEATURE is True:
downloadCTranslate2Weight(config.PATH_LOCAL, config.CTRANSLATE2_WEIGHT_TYPE, splash.updateDownloadProgress)
splash.toProgress(0)
# whisperのダウンロードの説明に変更する必要あり
if config.USE_RECOGNIZER_FEATURE is True:
from models.transcription.transcription_whisper import downloadWhisperWeight
downloadWhisperWeight(config.PATH_LOCAL, config.WHISPER_WEIGHT_TYPE, splash.updateDownloadProgress)
splash.toProgress(0)
import controller
controller.createMainWindow(splash)
splash.destroySplash()