Update app.py
Browse files
app.py
CHANGED
@@ -99,6 +99,7 @@ class App:
|
|
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 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)
|
104 |
cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True, visible=False)
|
@@ -311,8 +312,7 @@ class App:
|
|
311 |
btn_reset.click(None,js="window.location.reload()")
|
312 |
with gr.Row():
|
313 |
with gr.Column(scale=4):
|
314 |
-
tb_indicator = gr.Textbox(label="Output preview", scale=1, show_copy_button=True, show_label=True)
|
315 |
-
gr.Markdown(MARKDOWN_NOTE, elem_id="md_note")
|
316 |
with gr.Column(scale=1):
|
317 |
tb_info = gr.Textbox(label="Output info", interactive=False, scale=1)
|
318 |
files_subtitles = gr.Files(label="Output data", interactive=False, scale=1,file_count="multiple")
|
|
|
99 |
with gr.Row():
|
100 |
with gr.Column(scale=4):
|
101 |
with gr.Row():
|
102 |
+
gr.Markdown("Transcribe:")
|
103 |
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)
|
104 |
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)
|
105 |
cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True, visible=False)
|
|
|
312 |
btn_reset.click(None,js="window.location.reload()")
|
313 |
with gr.Row():
|
314 |
with gr.Column(scale=4):
|
315 |
+
tb_indicator = gr.Textbox(label="Output preview (Always review & verify the output generated by AI models)", scale=1, show_copy_button=True, show_label=True)
|
|
|
316 |
with gr.Column(scale=1):
|
317 |
tb_info = gr.Textbox(label="Output info", interactive=False, scale=1)
|
318 |
files_subtitles = gr.Files(label="Output data", interactive=False, scale=1,file_count="multiple")
|