Update app.py
Browse files
app.py
CHANGED
|
@@ -344,11 +344,6 @@ class App:
|
|
| 344 |
interactive=False,
|
| 345 |
visible=False,
|
| 346 |
elem_id="md_disclaimer")
|
| 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 |
-
btn_run.click(fn=self.whisper_inf.transcribe_file,
|
| 350 |
-
inputs=params + whisper_params.as_list(),
|
| 351 |
-
outputs=[tb_indicator, files_subtitles, tb_info])
|
| 352 |
|
| 353 |
#btn_openfolder = gr.Button('📂', scale=1)
|
| 354 |
#btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)
|
|
@@ -362,6 +357,10 @@ class App:
|
|
| 362 |
with gr.Column():
|
| 363 |
gr.Markdown(device_info, label="Hardware info & installed packages")
|
| 364 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 365 |
|
| 366 |
# Launch the app with optional gradio settings
|
| 367 |
args = self.args
|
|
|
|
| 344 |
interactive=False,
|
| 345 |
visible=False,
|
| 346 |
elem_id="md_disclaimer")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 347 |
|
| 348 |
#btn_openfolder = gr.Button('📂', scale=1)
|
| 349 |
#btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)
|
|
|
|
| 357 |
with gr.Column():
|
| 358 |
gr.Markdown(device_info, label="Hardware info & installed packages")
|
| 359 |
|
| 360 |
+
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]
|
| 361 |
+
btn_run.click(fn=self.whisper_inf.transcribe_file,
|
| 362 |
+
inputs=params + whisper_params.as_list(),
|
| 363 |
+
outputs=[tb_indicator, files_subtitles, tb_info])
|
| 364 |
|
| 365 |
# Launch the app with optional gradio settings
|
| 366 |
args = self.args
|