Update app.py
Browse files
app.py
CHANGED
@@ -276,7 +276,8 @@ class App:
|
|
276 |
cb_translate_output,
|
277 |
dd_translate_model,
|
278 |
dd_target_lang,
|
279 |
-
cb_timestamp_preview
|
|
|
280 |
)
|
281 |
|
282 |
def launch(self):
|
@@ -333,12 +334,12 @@ class App:
|
|
333 |
files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple")
|
334 |
# btn_openfolder = gr.Button('📂', scale=1)
|
335 |
|
336 |
-
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]
|
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])
|
341 |
-
btn_run.click(fn=self.update_dataframe,inputs=[cb_timestamp_preview,
|
342 |
# btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)
|
343 |
|
344 |
input_multi.change(fn=self.update_viewer,inputs=input_multi,outputs=[input_file_audio,input_file_video,input_file_multi])
|
|
|
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):
|
|
|
334 |
files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple")
|
335 |
# btn_openfolder = gr.Button('📂', scale=1)
|
336 |
|
337 |
+
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, cb_diarize]
|
338 |
|
339 |
btn_run.click(fn=self.whisper_inf.transcribe_file,
|
340 |
inputs=params + whisper_params.as_list(),
|
341 |
outputs=[tb_indicator, files_subtitles, tb_info])
|
342 |
+
btn_run.click(fn=self.update_dataframe,inputs=[cb_timestamp_preview,cb_diarize,outputs=tb_indicator)
|
343 |
# btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)
|
344 |
|
345 |
input_multi.change(fn=self.update_viewer,inputs=input_multi,outputs=[input_file_audio,input_file_video,input_file_multi])
|