👍️[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:
@@ -144,7 +144,7 @@ class Controller:
|
||||
printLog("CTranslate2 Weight Download Progress", progress)
|
||||
self.run(
|
||||
200,
|
||||
self.run_mapping["download_ctranslate2_weight"],
|
||||
self.run_mapping["download_progress_ctranslate2_weight"],
|
||||
{"weight_type": self.weight_type, "progress": progress},
|
||||
)
|
||||
|
||||
@@ -169,7 +169,7 @@ class Controller:
|
||||
printLog("Whisper Weight Download Progress", progress)
|
||||
self.run(
|
||||
200,
|
||||
self.run_mapping["download_whisper_weight"],
|
||||
self.run_mapping["download_progress_whisper_weight"],
|
||||
{"weight_type": self.weight_type, "progress": progress},
|
||||
)
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@ run_mapping = {
|
||||
"error_translation_engine":"/run/error_translation_engine",
|
||||
"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",
|
||||
"download_whisper_weight":"/run/download_whisper_weight",
|
||||
"download_progress_whisper_weight":"/run/download_progress_whisper_weight",
|
||||
"downloaded_whisper_weight":"/run/downloaded_whisper_weight",
|
||||
|
||||
"selected_mic_device":"/run/selected_mic_device",
|
||||
|
||||
Reference in New Issue
Block a user