Update app.py
Browse files
app.py
CHANGED
@@ -330,8 +330,11 @@ class App:
|
|
330 |
files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple")
|
331 |
# btn_openfolder = gr.Button('📂', scale=1)
|
332 |
|
333 |
-
|
334 |
-
|
|
|
|
|
|
|
335 |
btn_run.click(fn=self.whisper_inf.transcribe_file,
|
336 |
inputs=params + whisper_params.as_list(),
|
337 |
outputs=[tb_indicator, files_subtitles, tb_info])
|
|
|
330 |
files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple")
|
331 |
# btn_openfolder = gr.Button('📂', scale=1)
|
332 |
|
333 |
+
if input_file.visible:
|
334 |
+
params = [input_file, tb_input_folder, dd_file_format, cb_timestamp_file, cb_translate_output, dd_translate_model, dd_target_lang, cb_timestamp_preview]
|
335 |
+
else:
|
336 |
+
params = [input_file_multi, tb_input_folder, dd_file_format, cb_timestamp_file, cb_translate_output, dd_translate_model, dd_target_lang, cb_timestamp_preview]
|
337 |
+
|
338 |
btn_run.click(fn=self.whisper_inf.transcribe_file,
|
339 |
inputs=params + whisper_params.as_list(),
|
340 |
outputs=[tb_indicator, files_subtitles, tb_info])
|