LAP-DEV commited on
Commit
01f27f4
·
verified ·
1 Parent(s): f24f23a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -301,18 +301,18 @@ class App:
301
  with gr.Tabs():
302
  with gr.TabItem("Audio upload/record"): # tab1
303
 
 
 
 
 
 
 
304
  tb_input_folder = gr.Textbox(label="Input Folder Path (Optional)",
305
  info="Optional: Specify the folder path where the input files are located, if you prefer to use local files instead of uploading them."
306
  " Leave this field empty if you do not wish to use a local path.",
307
  visible=self.args.colab,
308
  value="")
309
 
310
- with gr.Row():
311
- with gr.Column(scale=2):
312
- input_file = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True)
313
- with gr.Column(scale=2):
314
- input_file_multi = gr.Files(label="Upload audio/video file here", elem_id="audio_input", type='filepath', file_count="multiple", file_types=["audio","video"])
315
-
316
  whisper_params, dd_file_format, cb_timestamp_file, cb_translate_output, dd_translate_model, dd_target_lang, cb_timestamp_preview = self.create_whisper_parameters()
317
 
318
  with gr.Row():
 
301
  with gr.Tabs():
302
  with gr.TabItem("Audio upload/record"): # tab1
303
 
304
+ with gr.Row():
305
+ with gr.Column(scale=2):
306
+ input_file = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True)
307
+ with gr.Column(scale=2):
308
+ input_file_multi = gr.Files(label="Upload audio/video file here", elem_id="audio_input", type='filepath', file_count="multiple", file_types=["audio","video"])
309
+
310
  tb_input_folder = gr.Textbox(label="Input Folder Path (Optional)",
311
  info="Optional: Specify the folder path where the input files are located, if you prefer to use local files instead of uploading them."
312
  " Leave this field empty if you do not wish to use a local path.",
313
  visible=self.args.colab,
314
  value="")
315
 
 
 
 
 
 
 
316
  whisper_params, dd_file_format, cb_timestamp_file, cb_translate_output, dd_translate_model, dd_target_lang, cb_timestamp_preview = self.create_whisper_parameters()
317
 
318
  with gr.Row():