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 increase transcription quality, 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)
|
|
@@ -108,11 +108,10 @@ class App:
|
|
| 108 |
with gr.Row():
|
| 109 |
cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English", info="Translate using OpenAI Whisper's built-in module",interactive=True)
|
| 110 |
cb_translate_output = gr.Checkbox(value=translation_params["translate_output"], label="Translate to selected language", info="Translate using Facebook's NLLB",interactive=True)
|
| 111 |
-
with gr.Column(scale=1):
|
| 112 |
with gr.Row():
|
| 113 |
dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", interactive=True,visible=False)
|
| 114 |
dd_preview_format = gr.Dropdown(choices=["text", "text with timestamps", "csv"], value="text",label="Output preview format", interactive=True)
|
| 115 |
-
cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output
|
| 116 |
|
| 117 |
with gr.Accordion("Speaker diarization", open=False, visible=True):
|
| 118 |
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=4):
|
| 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 increase transcription quality, 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)
|
|
|
|
| 108 |
with gr.Row():
|
| 109 |
cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English", info="Translate using OpenAI Whisper's built-in module",interactive=True)
|
| 110 |
cb_translate_output = gr.Checkbox(value=translation_params["translate_output"], label="Translate to selected language", info="Translate using Facebook's NLLB",interactive=True)
|
|
|
|
| 111 |
with gr.Row():
|
| 112 |
dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", interactive=True,visible=False)
|
| 113 |
dd_preview_format = gr.Dropdown(choices=["text", "text with timestamps", "csv"], value="text",label="Output preview format", interactive=True)
|
| 114 |
+
cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output data",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)
|