Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ 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():
|
@@ -330,11 +330,8 @@ class App:
|
|
330 |
files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple")
|
331 |
# btn_openfolder = gr.Button('📂', scale=1)
|
332 |
|
333 |
-
|
334 |
-
|
335 |
-
else:
|
336 |
-
params = [input_file_multi, tb_input_folder, dd_file_format, cb_timestamp_file, cb_translate_output, dd_translate_model, dd_target_lang, cb_timestamp_preview]
|
337 |
-
|
338 |
btn_run.click(fn=self.whisper_inf.transcribe_file,
|
339 |
inputs=params + whisper_params.as_list(),
|
340 |
outputs=[tb_indicator, files_subtitles, tb_info])
|
|
|
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():
|
|
|
330 |
files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple")
|
331 |
# btn_openfolder = gr.Button('📂', scale=1)
|
332 |
|
333 |
+
params = [input_file, tb_input_folder, dd_file_format, cb_timestamp_file, cb_translate_output, dd_translate_model, dd_target_lang, cb_timestamp_preview]
|
334 |
+
|
|
|
|
|
|
|
335 |
btn_run.click(fn=self.whisper_inf.transcribe_file,
|
336 |
inputs=params + whisper_params.as_list(),
|
337 |
outputs=[tb_indicator, files_subtitles, tb_info])
|