Update app.py
Browse files92 unmodified lines93949596969798989910010110210310310410510610710810992 unmodified lines uvr_params = self.default_params["bgm_separation"]
with gr.Row(): with gr.Column(scale=2): with gr.Column(scale=3): 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") with gr.Column(scale=2): with gr.Column(scale=3): 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") #dd_file_format = gr.Dropdown(choices=["SRT", "WebVTT", "txt"], value="SRT", label="File Format") dd_file_format = gr.Dropdown(choices=["SRT", "txt"], value="txt", label="Output format", visible=False) with gr.Column(scale=1): cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization",interactive=True) cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization",interactive=True) with gr.Column(scale=1): cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True) with gr.Column(scale=1): cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
with gr.Accordion("Diarization options", open=False):app.py+5-3