Update app.py
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ class App:
|
|
| 97 |
nllb_params = translation_params["nllb"]
|
| 98 |
|
| 99 |
with gr.Row():
|
| 100 |
-
with gr.Column(scale=
|
| 101 |
with gr.Row():
|
| 102 |
dd_model = gr.Dropdown(choices=self.whisper_inf.available_models, value=whisper_params["model_size"],label="Model", info="Larger models will increase the quality of the transcription, but reduce performance", interactive=True)
|
| 103 |
dd_lang = gr.Dropdown(choices=["Automatic Detection"] + self.whisper_inf.available_langs,value=whisper_params["lang"], label="Language", info="If the language is known upfront, always set it manually", interactive=True)
|
|
@@ -110,8 +110,12 @@ class App:
|
|
| 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 |
|
| 112 |
with gr.Row():
|
| 113 |
-
|
| 114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|
|
|
|
| 97 |
nllb_params = translation_params["nllb"]
|
| 98 |
|
| 99 |
with gr.Row():
|
| 100 |
+
with gr.Column(scale=3):
|
| 101 |
with gr.Row():
|
| 102 |
dd_model = gr.Dropdown(choices=self.whisper_inf.available_models, value=whisper_params["model_size"],label="Model", info="Larger models will increase the quality of the transcription, but reduce performance", interactive=True)
|
| 103 |
dd_lang = gr.Dropdown(choices=["Automatic Detection"] + self.whisper_inf.available_langs,value=whisper_params["lang"], label="Language", info="If the language is known upfront, always set it manually", 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 |
|
| 112 |
with gr.Row():
|
| 113 |
+
with gr.Column(scale=2):
|
| 114 |
+
with gr.Row():
|
| 115 |
+
cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
|
| 116 |
+
with gr.Column(scale=2):
|
| 117 |
+
with gr.Row():
|
| 118 |
+
cb_translate_output = gr.Checkbox(value=translation_params["translate_output"], label="Translate output",interactive=True)
|
| 119 |
|
| 120 |
# with gr.Accordion("Speaker diarization", open=False, visible=True):
|
| 121 |
# cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Use diarization",interactive=True)
|