Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -106,11 +106,13 @@ class WhisperBase(ABC):
|
|
106 |
params = WhisperParameters.as_value(*whisper_params)
|
107 |
|
108 |
# Get the offload params
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
|
|
|
|
114 |
bool_whisper_enable_offload = True
|
115 |
bool_diarization_enable_offload = True
|
116 |
|
|
|
106 |
params = WhisperParameters.as_value(*whisper_params)
|
107 |
|
108 |
# Get the offload params
|
109 |
+
default_params = load_yaml(DEFAULT_PARAMETERS_CONFIG_PATH)
|
110 |
+
whisper_params = default_params["whisper"]
|
111 |
+
diarization_params = default_params["diarization"]
|
112 |
+
bool_whisper_enable_offload = whisper_params["enable_offload"]
|
113 |
+
bool_diarization_enable_offload = diarization_params["enable_offload"]
|
114 |
+
print("offload whisper param: "+whisper_params["enable_offload"])
|
115 |
+
print("offload diarization param: "+diarization_params["enable_offload"])
|
116 |
bool_whisper_enable_offload = True
|
117 |
bool_diarization_enable_offload = True
|
118 |
|