Update app.py
Browse files
app.py
CHANGED
|
@@ -276,8 +276,7 @@ class App:
|
|
| 276 |
cb_translate_output,
|
| 277 |
dd_translate_model,
|
| 278 |
dd_target_lang,
|
| 279 |
-
cb_timestamp_preview
|
| 280 |
-
cb_diarize
|
| 281 |
)
|
| 282 |
|
| 283 |
def launch(self):
|
|
@@ -319,7 +318,7 @@ class App:
|
|
| 319 |
visible=self.args.colab,
|
| 320 |
value="")
|
| 321 |
|
| 322 |
-
whisper_params, input_multi, input_file_audio, input_file_video, input_file_multi, dd_file_format, cb_timestamp_file, cb_translate_output, dd_translate_model, dd_target_lang, cb_timestamp_preview
|
| 323 |
|
| 324 |
with gr.Row():
|
| 325 |
btn_run = gr.Button("Transcribe", variant="primary")
|
|
@@ -346,7 +345,7 @@ class App:
|
|
| 346 |
files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple")
|
| 347 |
# btn_openfolder = gr.Button('📂', scale=1)
|
| 348 |
|
| 349 |
-
params = [input_file_audio, input_file_video, input_file_multi, input_multi, tb_input_folder, dd_file_format, cb_timestamp_file, cb_translate_output, dd_translate_model, dd_target_lang, cb_timestamp_preview
|
| 350 |
|
| 351 |
btn_run.click(fn=self.whisper_inf.transcribe_file,
|
| 352 |
inputs=params + whisper_params.as_list(),
|
|
|
|
| 276 |
cb_translate_output,
|
| 277 |
dd_translate_model,
|
| 278 |
dd_target_lang,
|
| 279 |
+
cb_timestamp_preview
|
|
|
|
| 280 |
)
|
| 281 |
|
| 282 |
def launch(self):
|
|
|
|
| 318 |
visible=self.args.colab,
|
| 319 |
value="")
|
| 320 |
|
| 321 |
+
whisper_params, input_multi, input_file_audio, input_file_video, input_file_multi, dd_file_format, cb_timestamp_file, cb_translate_output, dd_translate_model, dd_target_lang, cb_timestamp_preview = self.create_whisper_parameters()
|
| 322 |
|
| 323 |
with gr.Row():
|
| 324 |
btn_run = gr.Button("Transcribe", variant="primary")
|
|
|
|
| 345 |
files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple")
|
| 346 |
# btn_openfolder = gr.Button('📂', scale=1)
|
| 347 |
|
| 348 |
+
params = [input_file_audio, input_file_video, input_file_multi, input_multi, tb_input_folder, dd_file_format, cb_timestamp_file, cb_translate_output, dd_translate_model, dd_target_lang, cb_timestamp_preview]
|
| 349 |
|
| 350 |
btn_run.click(fn=self.whisper_inf.transcribe_file,
|
| 351 |
inputs=params + whisper_params.as_list(),
|