Update app.py
Browse files
app.py
CHANGED
@@ -264,7 +264,8 @@ class App:
|
|
264 |
cb_timestamp,
|
265 |
cb_translate_output,
|
266 |
dd_translate_model,
|
267 |
-
dd_target_lang
|
|
|
268 |
)
|
269 |
|
270 |
def launch(self):
|
@@ -289,7 +290,7 @@ class App:
|
|
289 |
visible=self.args.colab,
|
290 |
value="")
|
291 |
|
292 |
-
whisper_params, dd_file_format, cb_timestamp, cb_translate_output, dd_translate_model, dd_target_lang = self.create_whisper_parameters()
|
293 |
|
294 |
with gr.Row():
|
295 |
btn_run = gr.Button("Transcribe", variant="primary")
|
@@ -303,7 +304,7 @@ class App:
|
|
303 |
files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple")
|
304 |
# btn_openfolder = gr.Button('📂', scale=1)
|
305 |
|
306 |
-
params = [input_file, tb_input_folder, dd_file_format, cb_timestamp, cb_translate_output, dd_translate_model, dd_target_lang]
|
307 |
btn_run.click(fn=self.whisper_inf.transcribe_file,
|
308 |
inputs=params + whisper_params.as_list(),
|
309 |
outputs=[tb_indicator, files_subtitles, tb_info])
|
|
|
264 |
cb_timestamp,
|
265 |
cb_translate_output,
|
266 |
dd_translate_model,
|
267 |
+
dd_target_lang,
|
268 |
+
dd_preview_format
|
269 |
)
|
270 |
|
271 |
def launch(self):
|
|
|
290 |
visible=self.args.colab,
|
291 |
value="")
|
292 |
|
293 |
+
whisper_params, dd_file_format, cb_timestamp, cb_translate_output, dd_translate_model, dd_target_lang, dd_preview_format = self.create_whisper_parameters()
|
294 |
|
295 |
with gr.Row():
|
296 |
btn_run = gr.Button("Transcribe", variant="primary")
|
|
|
304 |
files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple")
|
305 |
# btn_openfolder = gr.Button('📂', scale=1)
|
306 |
|
307 |
+
params = [input_file, tb_input_folder, dd_file_format, cb_timestamp, cb_translate_output, dd_translate_model, dd_target_lang, dd_preview_format]
|
308 |
btn_run.click(fn=self.whisper_inf.transcribe_file,
|
309 |
inputs=params + whisper_params.as_list(),
|
310 |
outputs=[tb_indicator, files_subtitles, tb_info])
|