Update app.py
Browse files
app.py
CHANGED
|
@@ -294,8 +294,8 @@ class App:
|
|
| 294 |
disclaimer_show = general_params["disclaimer_show"]
|
| 295 |
disclaimer_popup = general_params["disclaimer_popup"]
|
| 296 |
|
| 297 |
-
with gr.Sidebar(open=False,position="right"):
|
| 298 |
-
|
| 299 |
|
| 300 |
with gr.Row():
|
| 301 |
#with gr.Column():
|
|
@@ -324,13 +324,9 @@ class App:
|
|
| 324 |
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()
|
| 325 |
|
| 326 |
with gr.Row():
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
with gr.Column(scale=1):
|
| 331 |
-
with gr.Row():
|
| 332 |
-
btn_reset = gr.Button(value="Reset")
|
| 333 |
-
btn_reset.click(None,js="window.location.reload()")
|
| 334 |
with gr.Row():
|
| 335 |
tb_info = gr.Textbox(label="Output info", interactive=False, show_copy_button=True)
|
| 336 |
with gr.Row():
|
|
@@ -358,7 +354,10 @@ class App:
|
|
| 358 |
#btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)
|
| 359 |
|
| 360 |
input_multi.change(fn=self.update_viewer,inputs=input_multi,outputs=[input_file_audio,input_file_video,input_file_multi])
|
| 361 |
-
|
|
|
|
|
|
|
|
|
|
| 362 |
with gr.TabItem("Device info"): # tab2
|
| 363 |
with gr.Column():
|
| 364 |
gr.Markdown(device_info, label="Hardware info & installed packages")
|
|
|
|
| 294 |
disclaimer_show = general_params["disclaimer_show"]
|
| 295 |
disclaimer_popup = general_params["disclaimer_popup"]
|
| 296 |
|
| 297 |
+
#with gr.Sidebar(open=False,position="right"):
|
| 298 |
+
# files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple")
|
| 299 |
|
| 300 |
with gr.Row():
|
| 301 |
#with gr.Column():
|
|
|
|
| 324 |
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()
|
| 325 |
|
| 326 |
with gr.Row():
|
| 327 |
+
btn_run = gr.Button("Transcribe", variant="primary")
|
| 328 |
+
btn_reset = gr.Button(value="Reset")
|
| 329 |
+
btn_reset.click(None,js="window.location.reload()")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 330 |
with gr.Row():
|
| 331 |
tb_info = gr.Textbox(label="Output info", interactive=False, show_copy_button=True)
|
| 332 |
with gr.Row():
|
|
|
|
| 354 |
#btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)
|
| 355 |
|
| 356 |
input_multi.change(fn=self.update_viewer,inputs=input_multi,outputs=[input_file_audio,input_file_video,input_file_multi])
|
| 357 |
+
|
| 358 |
+
with gr.TabItem("Results"): # tab2
|
| 359 |
+
files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple", height=300)
|
| 360 |
+
|
| 361 |
with gr.TabItem("Device info"): # tab2
|
| 362 |
with gr.Column():
|
| 363 |
gr.Markdown(device_info, label="Hardware info & installed packages")
|