Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
|
@@ -179,6 +179,9 @@ class WhisperBase(ABC):
|
|
| 179 |
input_folder_path: Optional[str] = None,
|
| 180 |
file_format: str = "SRT",
|
| 181 |
add_timestamp: bool = True,
|
|
|
|
|
|
|
|
|
|
| 182 |
progress=gr.Progress(),
|
| 183 |
*whisper_params,
|
| 184 |
) -> list:
|
|
@@ -196,6 +199,12 @@ class WhisperBase(ABC):
|
|
| 196 |
Subtitle File format to write from gr.Dropdown(). Supported format: [SRT, WebVTT, txt]
|
| 197 |
add_timestamp: bool
|
| 198 |
Boolean value from gr.Checkbox() that determines whether to add a timestamp at the end of the subtitle filename.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
progress: gr.Progress
|
| 200 |
Indicator to show progress directly in gradio.
|
| 201 |
*whisper_params: tuple
|
|
|
|
| 179 |
input_folder_path: Optional[str] = None,
|
| 180 |
file_format: str = "SRT",
|
| 181 |
add_timestamp: bool = True,
|
| 182 |
+
translate_output: bool = False,
|
| 183 |
+
dd_translate_model: str = "",
|
| 184 |
+
dd_target_lang: str = "",
|
| 185 |
progress=gr.Progress(),
|
| 186 |
*whisper_params,
|
| 187 |
) -> list:
|
|
|
|
| 199 |
Subtitle File format to write from gr.Dropdown(). Supported format: [SRT, WebVTT, txt]
|
| 200 |
add_timestamp: bool
|
| 201 |
Boolean value from gr.Checkbox() that determines whether to add a timestamp at the end of the subtitle filename.
|
| 202 |
+
translate_output: bool
|
| 203 |
+
Translate ouput
|
| 204 |
+
translate_model: str
|
| 205 |
+
Translation model to use
|
| 206 |
+
target_lang: str
|
| 207 |
+
Target language to use
|
| 208 |
progress: gr.Progress
|
| 209 |
Indicator to show progress directly in gradio.
|
| 210 |
*whisper_params: tuple
|