👍️[Update] Controller : change endpoint for ai model download progress

download_ctranslate2_weight -> download_progress_ctranslate2_weight
download_whisper_weight -> download_progress_whisper_weight
This commit is contained in:
misyaguziya
2024-11-21 23:47:36 +09:00
parent 3e883dfeb7
commit 650ec2cce7
2 changed files with 4 additions and 4 deletions

View File

@@ -144,7 +144,7 @@ class Controller:
printLog("CTranslate2 Weight Download Progress", progress) printLog("CTranslate2 Weight Download Progress", progress)
self.run( self.run(
200, 200,
self.run_mapping["download_ctranslate2_weight"], self.run_mapping["download_progress_ctranslate2_weight"],
{"weight_type": self.weight_type, "progress": progress}, {"weight_type": self.weight_type, "progress": progress},
) )
@@ -169,7 +169,7 @@ class Controller:
printLog("Whisper Weight Download Progress", progress) printLog("Whisper Weight Download Progress", progress)
self.run( self.run(
200, 200,
self.run_mapping["download_whisper_weight"], self.run_mapping["download_progress_whisper_weight"],
{"weight_type": self.weight_type, "progress": progress}, {"weight_type": self.weight_type, "progress": progress},
) )

View File

@@ -20,9 +20,9 @@ run_mapping = {
"error_translation_engine":"/run/error_translation_engine", "error_translation_engine":"/run/error_translation_engine",
"word_filter":"/run/word_filter", "word_filter":"/run/word_filter",
"download_ctranslate2_weight":"/run/download_ctranslate2_weight", "download_progress_ctranslate2_weight":"/run/download_progress_ctranslate2_weight",
"downloaded_ctranslate2_weight":"/run/downloaded_ctranslate2_weight", "downloaded_ctranslate2_weight":"/run/downloaded_ctranslate2_weight",
"download_whisper_weight":"/run/download_whisper_weight", "download_progress_whisper_weight":"/run/download_progress_whisper_weight",
"downloaded_whisper_weight":"/run/downloaded_whisper_weight", "downloaded_whisper_weight":"/run/downloaded_whisper_weight",
"selected_mic_device":"/run/selected_mic_device", "selected_mic_device":"/run/selected_mic_device",