Update app.py
Browse files
app.py
CHANGED
|
@@ -96,18 +96,16 @@ class App:
|
|
| 96 |
nllb_params = translation_params["nllb"]
|
| 97 |
|
| 98 |
with gr.Row():
|
| 99 |
-
with gr.Column(scale=
|
| 100 |
with gr.Row():
|
| 101 |
input_multi = gr.Radio(["Single", "Multiple"], label="Process one or multiple files", value="Single")
|
| 102 |
-
with gr.Row():
|
| 103 |
-
input_file = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True, visible=True, interactive=True)
|
| 104 |
-
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)
|
| 105 |
-
with gr.Column(scale=1):
|
| 106 |
with gr.Row():
|
| 107 |
dd_file_format = gr.Dropdown(choices=["CSV","SRT","TXT"], value="CSV", 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="Show preview with timestamps", interactive=True)
|
| 110 |
-
cb_timestamp_file = gr.Checkbox(value=whisper_params["add_timestamp_file"], label="Add timestamp to filenames", interactive=True)
|
|
|
|
|
|
|
|
|
|
| 111 |
|
| 112 |
with gr.Row():
|
| 113 |
with gr.Column(scale=4):
|
|
|
|
| 96 |
nllb_params = translation_params["nllb"]
|
| 97 |
|
| 98 |
with gr.Row():
|
| 99 |
+
with gr.Column(scale=1):
|
| 100 |
with gr.Row():
|
| 101 |
input_multi = gr.Radio(["Single", "Multiple"], label="Process one or multiple files", value="Single")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
with gr.Row():
|
| 103 |
dd_file_format = gr.Dropdown(choices=["CSV","SRT","TXT"], value="CSV", label="Output format", multiselect=True, interactive=True, visible=True)
|
|
|
|
| 104 |
cb_timestamp_preview = gr.Checkbox(value=whisper_params["add_timestamp_preview"],label="Show preview with timestamps", interactive=True)
|
| 105 |
+
cb_timestamp_file = gr.Checkbox(value=whisper_params["add_timestamp_file"], label="Add timestamp to filenames", interactive=True)
|
| 106 |
+
with gr.Column(scale=4):
|
| 107 |
+
input_file = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True, visible=True, interactive=True)
|
| 108 |
+
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)
|
| 109 |
|
| 110 |
with gr.Row():
|
| 111 |
with gr.Column(scale=4):
|