LAP-DEV commited on
Commit
2afe985
·
verified ·
1 Parent(s): c518353

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -95,13 +95,6 @@ class App:
95
  translation_params = self.default_params["translation"]
96
  nllb_params = translation_params["nllb"]
97
 
98
- with gr.Row():
99
- with gr.Column(scale=1):
100
- input_multi = gr.Radio(["Single", "Multiple"], label="Process one or multiple files", value="Single")
101
- with gr.Column(scale=4):
102
- input_file = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True, visible=True)
103
- 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)
104
-
105
  with gr.Row():
106
  with gr.Column(scale=4):
107
  with gr.Row():
@@ -308,6 +301,13 @@ class App:
308
  with gr.Tabs():
309
  with gr.TabItem("Audio upload/record"): # tab1
310
 
 
 
 
 
 
 
 
311
  tb_input_folder = gr.Textbox(label="Input Folder Path (Optional)",
312
  info="Optional: Specify the folder path where the input files are located, if you prefer to use local files instead of uploading them."
313
  " Leave this field empty if you do not wish to use a local path.",
 
95
  translation_params = self.default_params["translation"]
96
  nllb_params = translation_params["nllb"]
97
 
 
 
 
 
 
 
 
98
  with gr.Row():
99
  with gr.Column(scale=4):
100
  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=1):
306
+ input_multi = gr.Radio(["Single", "Multiple"], label="Process one or multiple files", value="Single")
307
+ with gr.Column(scale=4):
308
+ input_file = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True, visible=True, interactive=True)
309
+ 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)
310
+
311
  tb_input_folder = gr.Textbox(label="Input Folder Path (Optional)",
312
  info="Optional: Specify the folder path where the input files are located, if you prefer to use local files instead of uploading them."
313
  " Leave this field empty if you do not wish to use a local path.",