Update app.py
Browse files
app.py
CHANGED
@@ -98,17 +98,17 @@ class App:
|
|
98 |
with gr.Row():
|
99 |
with gr.Column(scale=1):
|
100 |
input_multi = gr.Radio(["Audio", "Video", "Multiple"], label="Process one or multiple files", value="Audio")
|
101 |
-
|
102 |
-
with gr.Column(scale=4):
|
103 |
input_file_audio = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True, visible=True, interactive=True)
|
104 |
input_file_video = gr.Video(elem_id="video_input", show_download_button=True, visible=False, interactive=True)
|
105 |
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)
|
106 |
-
|
|
|
|
|
|
|
|
|
107 |
with gr.Row():
|
108 |
with gr.Column(scale=4):
|
109 |
-
with gr.Row():
|
110 |
-
cb_timestamp_preview = gr.Checkbox(value=whisper_params["add_timestamp_preview"],label="Add timestamp to preview", interactive=True)
|
111 |
-
cb_timestamp_file = gr.Checkbox(value=whisper_params["add_timestamp_file"], label="Add timestamp to output", interactive=True)
|
112 |
with gr.Row():
|
113 |
model_list = self.whisper_inf.available_models if len(whisper_params["model_list"]) == 0 else whisper_params["model_list"]
|
114 |
dd_model = gr.Dropdown(choices=model_list, value=whisper_params["model_size"],label="Model", info="Larger models increase transcription quality, but reduce performance", interactive=True)
|
|
|
98 |
with gr.Row():
|
99 |
with gr.Column(scale=1):
|
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 |
+
dd_file_format = gr.Dropdown(choices=["CSV","SRT","TXT"], value=whisper_params["output_format"], label="Output format", multiselect=True, interactive=True, visible=True)
|
107 |
+
cb_timestamp_preview = gr.Checkbox(value=whisper_params["add_timestamp_preview"],label="Add timestamp to preview", interactive=True)
|
108 |
+
cb_timestamp_file = gr.Checkbox(value=whisper_params["add_timestamp_file"], label="Add timestamp to output", interactive=True)
|
109 |
+
|
110 |
with gr.Row():
|
111 |
with gr.Column(scale=4):
|
|
|
|
|
|
|
112 |
with gr.Row():
|
113 |
model_list = self.whisper_inf.available_models if len(whisper_params["model_list"]) == 0 else whisper_params["model_list"]
|
114 |
dd_model = gr.Dropdown(choices=model_list, value=whisper_params["model_size"],label="Model", info="Larger models increase transcription quality, but reduce performance", interactive=True)
|