LAP-DEV commited on
Commit
bb9aaa0
·
verified ·
1 Parent(s): 3fd20ac

Update modules/translation/translation_base.py

Browse files
modules/translation/translation_base.py CHANGED
@@ -142,6 +142,7 @@ class TranslationBase(ABC):
142
  model_size: str,
143
  src_lang: str,
144
  tgt_lang: str,
 
145
  max_length: int = 200,
146
  add_timestamp: bool = True,
147
  progress=gr.Progress()) -> list:
@@ -157,6 +158,8 @@ class TranslationBase(ABC):
157
  Source language of the file to translate from gr.Dropdown()
158
  tgt_lang: str
159
  Target language of the file to translate from gr.Dropdown()
 
 
160
  max_length: int
161
  Max length per line to translate
162
  add_timestamp: bool
 
142
  model_size: str,
143
  src_lang: str,
144
  tgt_lang: str,
145
+ speaker_diarization: bool = False,
146
  max_length: int = 200,
147
  add_timestamp: bool = True,
148
  progress=gr.Progress()) -> list:
 
158
  Source language of the file to translate from gr.Dropdown()
159
  tgt_lang: str
160
  Target language of the file to translate from gr.Dropdown()
161
+ speaker_diarization: bool
162
+ Boolean value that determines whether diarization is enabled or not
163
  max_length: int
164
  Max length per line to translate
165
  add_timestamp: bool