LAP-DEV commited on
Commit
72ddc13
·
verified ·
1 Parent(s): 40135c8

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +6 -2
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 = translate_text(transcribed_segments,"facebook/nllb-200-distilled-600M","English","Dutch")
 
 
 
 
 
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