LAP-DEV commited on
Commit
237cee5
·
verified ·
1 Parent(s): 1fab86b

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +3 -0
modules/whisper/whisper_base.py CHANGED
@@ -245,6 +245,7 @@ class WhisperBase(ABC):
245
  translate_model: str = "",
246
  target_lang: str = "",
247
  add_timestamp_preview: bool = False,
 
248
  progress=gr.Progress(),
249
  *whisper_params,
250
  ) -> list:
@@ -276,6 +277,8 @@ class WhisperBase(ABC):
276
  Target language to use
277
  add_timestamp_preview: bool
278
  Boolean value from gr.Checkbox() that determines whether to add a timestamp to output preview
 
 
279
  progress: gr.Progress
280
  Indicator to show progress directly in gradio.
281
  *whisper_params: tuple
 
245
  translate_model: str = "",
246
  target_lang: str = "",
247
  add_timestamp_preview: bool = False,
248
+ diarize_speakers: bool = False,
249
  progress=gr.Progress(),
250
  *whisper_params,
251
  ) -> list:
 
277
  Target language to use
278
  add_timestamp_preview: bool
279
  Boolean value from gr.Checkbox() that determines whether to add a timestamp to output preview
280
+ diarize_speakers: bool
281
+ Boolean value from gr.Checkbox() that determines whether to diarize speakers
282
  progress: gr.Progress
283
  Indicator to show progress directly in gradio.
284
  *whisper_params: tuple