LAP-DEV commited on
Commit
9bd1fc9
·
verified ·
1 Parent(s): 128fbf8

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +2 -2
modules/whisper/whisper_base.py CHANGED
@@ -19,7 +19,7 @@ from modules.utils.files_manager import get_media_files, format_gradio_files, lo
19
  from modules.whisper.whisper_parameter import *
20
  from modules.diarize.diarizer import Diarizer
21
  from modules.vad.silero_vad import SileroVAD
22
- from modules.translation.translation_base import *
23
 
24
  class WhisperBase(ABC):
25
  def __init__(self,
@@ -259,7 +259,7 @@ class WhisperBase(ABC):
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
- TranslateInstance = TranslationBase()
263
  test = TranslateInstance.translate_text(
264
  input_list_dict=transcribed_segments,
265
  model_size="facebook/nllb-200-distilled-600M",
 
19
  from modules.whisper.whisper_parameter import *
20
  from modules.diarize.diarizer import Diarizer
21
  from modules.vad.silero_vad import SileroVAD
22
+ import modules.translation.translation_base as TranslationBaseClass
23
 
24
  class WhisperBase(ABC):
25
  def __init__(self,
 
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
+ TranslateInstance = TranslationBaseClass()
263
  test = TranslateInstance.translate_text(
264
  input_list_dict=transcribed_segments,
265
  model_size="facebook/nllb-200-distilled-600M",