LAP-DEV commited on
Commit
0de5a72
·
verified ·
1 Parent(s): aaebe28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -105,8 +105,8 @@ class App:
105
  cb_timestamp_file = gr.Checkbox(value=whisper_params["add_timestamp_file"], label="Add timestamp to output", interactive=True)
106
  cb_timestamp_preview = gr.Checkbox(value=whisper_params["add_timestamp_preview"],label="Add timestamps to preview", interactive=True)
107
  with gr.Column(scale=4):
108
- input_file_audio = gr.Audio(type='filepath', elem_id="audio_input", buttons=["download"], visible=True, interactive=True)
109
- input_file_video = gr.Video(elem_id="video_input", buttons=["download"], visible=False, interactive=True)
110
  input_file_multi = gr.Files(label="Upload one or more audio/video files here", elem_id="multi_input", type='filepath', file_count="multiple", allow_reordering=True, file_types=["audio","video"], visible=False, interactive=True)
111
 
112
  with gr.Row():
@@ -343,9 +343,9 @@ class App:
343
  btn_reset = gr.Button(value="Reset")
344
  btn_reset.click(None,js="window.location.reload()")
345
  with gr.Row():
346
- tb_info = gr.Textbox(label="Output info", interactive=False, buttons=["copy"])
347
  with gr.Row():
348
- #tb_indicator = gr.Textbox(label="Output preview (Always review output generated by AI models)", buttons=["copy"], show_label=True)
349
  tb_indicator = gr.Dataframe(label="Output preview",
350
  headers= ["Time","Speaker","Text"],
351
  column_widths = ["6%","9%","84%"],
@@ -354,7 +354,8 @@ class App:
354
  wrap=True,
355
  line_breaks=True,
356
  show_label=True,
357
- buttons=["copy","fullscreen"],
 
358
  interactive=False,
359
  visible=False,
360
  elem_id="md_preview")
 
105
  cb_timestamp_file = gr.Checkbox(value=whisper_params["add_timestamp_file"], label="Add timestamp to output", interactive=True)
106
  cb_timestamp_preview = gr.Checkbox(value=whisper_params["add_timestamp_preview"],label="Add timestamps to preview", interactive=True)
107
  with gr.Column(scale=4):
108
+ input_file_audio = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True, visible=True, interactive=True)
109
+ input_file_video = gr.Video(elem_id="video_input", show_download_button=True, visible=False, interactive=True)
110
  input_file_multi = gr.Files(label="Upload one or more audio/video files here", elem_id="multi_input", type='filepath', file_count="multiple", allow_reordering=True, file_types=["audio","video"], visible=False, interactive=True)
111
 
112
  with gr.Row():
 
343
  btn_reset = gr.Button(value="Reset")
344
  btn_reset.click(None,js="window.location.reload()")
345
  with gr.Row():
346
+ tb_info = gr.Textbox(label="Output info", interactive=False, show_copy_button=True)
347
  with gr.Row():
348
+ #tb_indicator = gr.Textbox(label="Output preview (Always review output generated by AI models)", show_copy_button=True, show_label=True)
349
  tb_indicator = gr.Dataframe(label="Output preview",
350
  headers= ["Time","Speaker","Text"],
351
  column_widths = ["6%","9%","84%"],
 
354
  wrap=True,
355
  line_breaks=True,
356
  show_label=True,
357
+ show_copy_button=True,
358
+ show_fullscreen_button=True,
359
  interactive=False,
360
  visible=False,
361
  elem_id="md_preview")