[Update] Refactor compute type management: rename properties to 'SELECTED_TRANSLATION_COMPUTE_TYPE' and 'SELECTED_TRANSCRIPTION_COMPUTE_TYPE'
This commit is contained in:
@@ -48,8 +48,8 @@ run_mapping = {
|
||||
"selected_translation_engines":"/run/selected_translation_engines",
|
||||
"translation_engines":"/run/translation_engines",
|
||||
|
||||
"translation_compute_type":"/run/translation_compute_type",
|
||||
"transcription_compute_type":"/run/transcription_compute_type",
|
||||
"selected_translation_compute_type":"/run/selected_translation_compute_type",
|
||||
"selected_transcription_compute_type":"/run/selected_transcription_compute_type",
|
||||
|
||||
"mic_host_list":"/run/mic_host_list",
|
||||
"mic_device_list":"/run/mic_device_list",
|
||||
@@ -165,8 +165,8 @@ mapping = {
|
||||
"/get/data/ctranslate2_weight_type": {"status": True, "variable":controller.getCtranslate2WeightType},
|
||||
"/set/data/ctranslate2_weight_type": {"status": True, "variable":controller.setCtranslate2WeightType},
|
||||
|
||||
"/get/data/translation_compute_type": {"status": True, "variable":controller.getTranslationComputeType},
|
||||
"/set/data/translation_compute_type": {"status": True, "variable":controller.setTranslationComputeType},
|
||||
"/get/data/selected_translation_compute_type": {"status": True, "variable":controller.getSelectedTranslationComputeType},
|
||||
"/set/data/selected_translation_compute_type": {"status": True, "variable":controller.setSelectedTranslationComputeType},
|
||||
|
||||
"/run/download_ctranslate2_weight": {"status": True, "variable":controller.downloadCtranslate2Weight},
|
||||
|
||||
@@ -271,8 +271,8 @@ mapping = {
|
||||
"/get/data/whisper_weight_type": {"status": True, "variable":controller.getWhisperWeightType},
|
||||
"/set/data/whisper_weight_type": {"status": True, "variable":controller.setWhisperWeightType},
|
||||
|
||||
"/get/data/transcription_compute_type": {"status": True, "variable":controller.getTranscriptionComputeType},
|
||||
"/set/data/transcription_compute_type": {"status": True, "variable":controller.setTranscriptionComputeType},
|
||||
"/get/data/selected_transcription_compute_type": {"status": True, "variable":controller.getSelectedTranscriptionComputeType},
|
||||
"/set/data/selected_transcription_compute_type": {"status": True, "variable":controller.setSelectedTranscriptionComputeType},
|
||||
|
||||
"/run/download_whisper_weight": {"status": True, "variable":controller.downloadWhisperWeight},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user