Update app.py
Browse files92 unmodified lines939495969798991001011021031041051061079697989910010110210310410510610710810911092 unmodified lines uvr_params = self.default_params["bgm_separation"]
with gr.Row(): 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=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) 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.Column(scale=2): 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): 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") with gr.Column(scale=1): #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.Row(): cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization",interactive=True) cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True) cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
with gr.Accordion("Diarization options", open=False): tb_hf_token = gr.Text(label="HuggingFace Token", value=diarization_params["hf_token"],app.py+12-12