Update app.py
Browse files
app.py
CHANGED
@@ -106,12 +106,12 @@ class App:
|
|
106 |
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)
|
107 |
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)
|
108 |
with gr.Column(scale=1):
|
|
|
|
|
|
|
|
|
109 |
#with gr.Row():
|
110 |
-
|
111 |
-
#with gr.Row():
|
112 |
-
cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English", info="Translate using OpenAI Whisper's built-in module",interactive=True)
|
113 |
-
#with gr.Row():
|
114 |
-
cb_translate_output = gr.Checkbox(value=translation_params["translate_output"], label="Translate to selected language", info="Translate using Facebook's NLLB",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)
|
@@ -122,7 +122,7 @@ class App:
|
|
122 |
interactive=True, visible=False)
|
123 |
|
124 |
with gr.Accordion("Preprocessing options", open=False, visible=True):
|
125 |
-
gr.Markdown(value="<
|
126 |
with gr.Accordion("Voice Detection Filter", open=False, visible=True):
|
127 |
cb_vad_filter = gr.Checkbox(label="Enable Silero VAD Filter", value=vad_params["vad_filter"],
|
128 |
info="Enable to transcribe only detected voice parts",
|
|
|
106 |
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)
|
107 |
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)
|
108 |
with gr.Column(scale=1):
|
109 |
+
with gr.Row():
|
110 |
+
cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
|
111 |
+
with gr.Row():
|
112 |
+
cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English", info="Translate using OpenAI Whisper's built-in module",interactive=True)
|
113 |
#with gr.Row():
|
114 |
+
cb_translate_output = gr.Checkbox(value=translation_params["translate_output"], label="Translate to selected language", info="Translate using Facebook's NLLB",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)
|
|
|
122 |
interactive=True, visible=False)
|
123 |
|
124 |
with gr.Accordion("Preprocessing options", open=False, visible=True):
|
125 |
+
gr.Markdown(value="<span style="color:red">⚠ Experimental features (Use with caution)</span>")
|
126 |
with gr.Accordion("Voice Detection Filter", open=False, visible=True):
|
127 |
cb_vad_filter = gr.Checkbox(label="Enable Silero VAD Filter", value=vad_params["vad_filter"],
|
128 |
info="Enable to transcribe only detected voice parts",
|