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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -301,11 +301,11 @@ class App:
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."
 
301
  with gr.Tabs():
302
  with gr.TabItem("Audio upload/record"): # tab1
303
 
304
+ with gr.Tabs():
305
+ with gr.TabItem("Process a single file"):
306
  input_file = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True)
307
+ with gr.TabItem("Process multiple files"):
308
+ input_file_multi = gr.Files(label="Upload multiple audio/video files 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."