Update app.py
Browse files
app.py
CHANGED
@@ -96,14 +96,13 @@ class App:
|
|
96 |
nllb_params = translation_params["nllb"]
|
97 |
|
98 |
with gr.Row():
|
99 |
-
with gr.Column(scale=
|
100 |
-
input_multi = gr.Radio(["Audio", "Video", "Multiple"], label="Process one or multiple files", value="Audio")
|
101 |
-
with gr.Column(scale=3):
|
102 |
input_file_audio = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True, visible=True, interactive=True)
|
103 |
input_file_video = gr.Video(elem_id="video_input", show_download_button=True, visible=False, interactive=True)
|
104 |
input_file_multi = gr.Files(label="Upload one or more audio/video files here", elem_id="multi_input", type='filepath', file_count="multiple", allow_reordering=True, 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=whisper_params["output_format"], 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="Add timestamp to preview", interactive=True)
|
|
|
96 |
nllb_params = translation_params["nllb"]
|
97 |
|
98 |
with gr.Row():
|
99 |
+
with gr.Column(scale=4):
|
|
|
|
|
100 |
input_file_audio = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True, visible=True, interactive=True)
|
101 |
input_file_video = gr.Video(elem_id="video_input", show_download_button=True, visible=False, interactive=True)
|
102 |
input_file_multi = gr.Files(label="Upload one or more audio/video files here", elem_id="multi_input", type='filepath', file_count="multiple", allow_reordering=True, file_types=["audio","video"], visible=False, interactive=True)
|
103 |
with gr.Column(scale=1):
|
104 |
with gr.Row():
|
105 |
+
input_multi = gr.Radio(["Audio", "Video", "Multiple"], label="Process one or multiple files", value="Audio")
|
106 |
dd_file_format = gr.Dropdown(choices=["CSV","SRT","TXT"], value=whisper_params["output_format"], label="Output format", multiselect=True, interactive=True, visible=True)
|
107 |
with gr.Row():
|
108 |
cb_timestamp_preview = gr.Checkbox(value=whisper_params["add_timestamp_preview"],label="Add timestamp to preview", interactive=True)
|