Update app.py
Browse files
app.py
CHANGED
@@ -103,14 +103,15 @@ class App:
|
|
103 |
#dd_file_format = gr.Dropdown(choices=["SRT", "WebVTT", "txt"], value="SRT", label="File Format")
|
104 |
dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", info="Output preview format", interactive=True, visible=False)
|
105 |
|
106 |
-
with gr.
|
107 |
-
with gr.
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
|
|
114 |
|
115 |
# with gr.Accordion("Speaker diarization", open=False, visible=True):
|
116 |
# cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Use diarization",interactive=True)
|
|
|
103 |
#dd_file_format = gr.Dropdown(choices=["SRT", "WebVTT", "txt"], value="SRT", label="File Format")
|
104 |
dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", info="Output preview format", interactive=True, visible=False)
|
105 |
|
106 |
+
with gr.Row():
|
107 |
+
with gr.Column(scale=3):
|
108 |
+
with gr.Row():
|
109 |
+
dd_translate_model = gr.Dropdown(choices=self.nllb_inf.available_models, value=nllb_params["model_size"],label="Model", info="Model used for translation", interactive=True)
|
110 |
+
dd_target_lang = gr.Dropdown(choices=["English","Dutch","French","German"], value=nllb_params["target_lang"],label="Language", info="Language used for output translation", interactive=True)
|
111 |
+
with gr.Column(scale=1):
|
112 |
+
cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
|
113 |
+
with gr.Column(scale=1):
|
114 |
+
cb_translate_output = gr.Checkbox(value=translation_params["translate_output"], label="Translate output",interactive=True)
|
115 |
|
116 |
# with gr.Accordion("Speaker diarization", open=False, visible=True):
|
117 |
# cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Use diarization",interactive=True)
|