LAP-DEV commited on
Commit
02fe8b8
·
verified ·
1 Parent(s): 6751dbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -99,15 +99,16 @@ class App:
99
  with gr.Column(scale=1):
100
  with gr.Row():
101
  input_multi = gr.Radio(["Single", "Multiple"], label="Process one or multiple files", value="Single")
 
 
 
 
102
  with gr.Row():
103
  dd_file_format = gr.Dropdown(choices=["CSV","SRT","TXT"], value="CSV", label="Output format", multiselect=True, interactive=True, visible=True)
104
  with gr.Row():
105
  cb_timestamp_preview = gr.Checkbox(value=whisper_params["add_timestamp_preview"],label="Show preview with timestamps", interactive=True)
106
- cb_timestamp_file = gr.Checkbox(value=whisper_params["add_timestamp_file"], label="Add timestamp to filenames", interactive=True)
107
- with gr.Column(scale=4):
108
- input_file = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True, visible=True, interactive=True)
109
- input_file_multi = gr.Files(label="Upload one or more audio/video files here", elem_id="audio_input", type='filepath', file_count="multiple", file_types=["audio","video"], visible=False, interactive=True)
110
-
111
  with gr.Row():
112
  with gr.Column(scale=4):
113
  with gr.Row():
 
99
  with gr.Column(scale=1):
100
  with gr.Row():
101
  input_multi = gr.Radio(["Single", "Multiple"], label="Process one or multiple files", value="Single")
102
+ with gr.Column(scale=3):
103
+ input_file = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True, visible=True, interactive=True)
104
+ input_file_multi = gr.Files(label="Upload one or more audio/video files here", elem_id="audio_input", type='filepath', file_count="multiple", file_types=["audio","video"], visible=False, interactive=True)
105
+ with gr.Column(scale=1):
106
  with gr.Row():
107
  dd_file_format = gr.Dropdown(choices=["CSV","SRT","TXT"], value="CSV", label="Output format", multiselect=True, interactive=True, visible=True)
108
  with gr.Row():
109
  cb_timestamp_preview = gr.Checkbox(value=whisper_params["add_timestamp_preview"],label="Show preview with timestamps", interactive=True)
110
+ cb_timestamp_file = gr.Checkbox(value=whisper_params["add_timestamp_file"], label="Add timestamp to filenames", interactive=True)
111
+
 
 
 
112
  with gr.Row():
113
  with gr.Column(scale=4):
114
  with gr.Row():