[Update] UI追加 初期起動時の言語モデルダウンロード中、splash画面にプログレスバー表示。

This commit is contained in:
Sakamoto Shiina
2023-11-29 17:11:47 +09:00
parent 52abfb8a97
commit 69f6e44720
3 changed files with 34 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ if __name__ == "__main__":
from config import config
from models.translation.utils import downloadCTranslate2Weight
downloadCTranslate2Weight(config.PATH_LOCAL, config.WEIGHT_TYPE, config.CTRANSLATE2_WEIGHTS, print)
downloadCTranslate2Weight(config.PATH_LOCAL, config.WEIGHT_TYPE, config.CTRANSLATE2_WEIGHTS, splash.updateDownloadProgress)
import controller
controller.createMainWindow()