🐛[bugfix] Controller : compute device変更時に翻訳エンジンのAIモデルを変更するように修正

This commit is contained in:
misyaguziya
2024-12-03 12:59:04 +09:00
parent 358ea324a6
commit 1c4a832afc
3 changed files with 5 additions and 5 deletions

View File

@@ -418,6 +418,7 @@ class Controller:
def setSelectedTranslationComputeDevice(device:str, *args, **kwargs) -> dict:
printLog("setSelectedTranslationComputeDevice", device)
config.SELECTED_TRANSLATION_COMPUTE_DEVICE = device
model.changeTranslatorCTranslate2Model()
return {"status":200,"result":config.SELECTED_TRANSLATION_COMPUTE_DEVICE}
@staticmethod