Update app.py
Browse files
app.py
CHANGED
@@ -300,19 +300,19 @@ class App:
|
|
300 |
|
301 |
with gr.Tabs():
|
302 |
with gr.TabItem("Audio upload/record"): # tab1
|
303 |
-
with gr.Column():
|
304 |
-
#input_file = gr.Files(type="filepath", label="Upload File here")
|
305 |
-
#input_file = gr.File(type="filepath", label="Upload audio/video file here")
|
306 |
-
|
307 |
-
#input_file = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True)
|
308 |
-
input_file = 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():
|
|
|
300 |
|
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():
|