Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -258,9 +258,13 @@ class WhisperBase(ABC):
|
|
258 |
#)
|
259 |
#files_info[file_name] = {"subtitle": subtitle, "time_for_task": time_for_task, "path": file_path, "lang": file_language, "lang_prob": file_lang_probs, "input_source_file": (file_name+file_ext)}
|
260 |
|
261 |
-
|
262 |
# Translate the trandscribed segments
|
263 |
-
test =
|
|
|
|
|
|
|
|
|
|
|
264 |
print(test)
|
265 |
|
266 |
## Get preview as txt
|
|
|
258 |
#)
|
259 |
#files_info[file_name] = {"subtitle": subtitle, "time_for_task": time_for_task, "path": file_path, "lang": file_language, "lang_prob": file_lang_probs, "input_source_file": (file_name+file_ext)}
|
260 |
|
|
|
261 |
# Translate the trandscribed segments
|
262 |
+
test = TranslationBase.translate_file(self,
|
263 |
+
input_list_dict: transcribed_segments,
|
264 |
+
model_size: "facebook/nllb-200-distilled-600M",
|
265 |
+
src_lang: file_language,
|
266 |
+
tgt_lang: "Dutch"
|
267 |
+
)
|
268 |
print(test)
|
269 |
|
270 |
## Get preview as txt
|