[Update] Config Page: Transcription Tab. Add Whisper Weight Type Selector. Downloadable.
This commit is contained in:
@@ -48,6 +48,8 @@ import {
|
||||
useDeepLAuthKey,
|
||||
useCTranslate2WeightTypeStatus,
|
||||
useSelectedCTranslate2WeightType,
|
||||
useSelectedWhisperWeightType,
|
||||
useWhisperWeightTypeStatus,
|
||||
useOverlaySettings,
|
||||
useIsEnabledOverlaySmallLog,
|
||||
useOverlaySmallLogSettings,
|
||||
@@ -127,6 +129,13 @@ export const useReceiveRoutes = () => {
|
||||
downloadedCTranslate2WeightType,
|
||||
} = useCTranslate2WeightTypeStatus();
|
||||
|
||||
const { updateSelectedWhisperWeightType } = useSelectedWhisperWeightType();
|
||||
const {
|
||||
updateDownloadedWhisperWeightTypeStatus,
|
||||
updateDownloadProgressWhisperWeightTypeStatus,
|
||||
downloadedWhisperWeightType,
|
||||
} = useWhisperWeightTypeStatus();
|
||||
|
||||
const { updateOverlaySettings } = useOverlaySettings();
|
||||
const { updateOverlaySmallLogSettings } = useOverlaySmallLogSettings();
|
||||
const { updateIsEnabledOverlaySmallLog } = useIsEnabledOverlaySmallLog();
|
||||
@@ -342,6 +351,14 @@ export const useReceiveRoutes = () => {
|
||||
"/get/data/speaker_max_phrases": updateSpeakerMaxWords,
|
||||
"/set/data/speaker_max_phrases": updateSpeakerMaxWords,
|
||||
|
||||
"/get/data/whisper_weight_type": updateSelectedWhisperWeightType,
|
||||
"/set/data/whisper_weight_type": updateSelectedWhisperWeightType,
|
||||
|
||||
"/get/data/selectable_whisper_weight_type_dict": updateDownloadedWhisperWeightTypeStatus,
|
||||
|
||||
"/run/download_whisper_weight": updateDownloadProgressWhisperWeightTypeStatus,
|
||||
"/run/downloaded_whisper_weight": downloadedWhisperWeightType,
|
||||
|
||||
// VR
|
||||
"/get/data/overlay_settings": updateOverlaySettings,
|
||||
"/set/data/overlay_settings": updateOverlaySettings,
|
||||
|
||||
Reference in New Issue
Block a user