Update main/app/tabs/inference/inference.py
Browse files457 unmodified lines4584594604614624634644654664674684694704714724734744754764774786 unmodified lines485486487488489490491492493457 unmodified linesgr.Markdown(translations["convert_with_whisper_info"])with gr.Row():with gr.Column():with gr.Accordion(translations["model_accordion"] + " 1", open=True):with gr.Row():model_pth2 = gr.Dropdown(label=translations["model_name"], choices=model_name, value=model_name[0] if len(model_name) >= 1 else "", interactive=True, allow_custom_value=True)model_index2 = gr.Dropdown(label=translations["index_path"], choices=index_path, value=index_path[0] if len(index_path) >= 1 else "", interactive=True, allow_custom_value=True)refesh2 = gr.Button(translations["refesh"])with gr.Accordion(translations["model_accordion"] + " 2", open=True):with gr.Row():model_pth3 = gr.Dropdown(label=translations["model_name"], choices=model_name, value=model_name[0] if len(model_name) >= 1 else "", interactive=True, allow_custom_value=True)model_index3 = gr.Dropdown(label=translations["index_path"], choices=index_path, value=index_path[0] if len(index_path) >= 1 else "", interactive=True, allow_custom_value=True)refesh3 = gr.Button(translations["refesh"])with gr.Group():with gr.Row():cleaner2 = gr.Checkbox(label=translations["clear_audio"], value=False, interactive=True)autotune2 = gr.Checkbox(label=translations["autotune"], value=False, interactive=True)6 unmodified linesconvert_button3 = gr.Button(translations["convert_audio"], variant="primary")with gr.Row():with gr.Column():with gr.Row():pitch3 = gr.Slider(minimum=-20, maximum=20, step=1, info=translations["pitch_info"], label=translations["pitch"], value=0, interactive=True)index_strength2 = gr.Slider(label=translations["index_strength"], info=translations["index_strength_info"], minimum=0, maximum=1, value=0.5, step=0.01, interactive=True, visible=model_index2.value != "")with gr.Accordion(translations["input_output"], open=False):with gr.Column():export_format2 = gr.Radio(label=translations["export_format"], info=translations["export_info"], choices=["wav", "mp3", "flac", "ogg", "opus", "m4a", "mp4", "aac", "alac", "wma", "aiff", "webm", "ac3"], value="wav", interactive=True)457 unmodified lines4584594604614624634644654664674684694704714724734746 unmodified lines481482483484485486487488489457 unmodified linesgr.Markdown(translations["convert_with_whisper_info"])with gr.Row():with gr.Column():with gr.Accordion(translations["model_accordion"] + " 1", open=True):with gr.Row():model_pth2 = gr.Dropdown(label=translations["model_name"], choices=model_name, value=model_name[0] if len(model_name) >= 1 else "", interactive=True, allow_custom_value=True)model_index2 = gr.Dropdown(label=translations["index_path"], choices=index_path, value=index_path[0] if len(index_path) >= 1 else "", interactive=True, allow_custom_value=True)refesh2 = gr.Button(translations["refesh"])with gr.Accordion(translations["model_accordion"] + " 2", open=True):with gr.Row():model_pth3 = gr.Dropdown(label=translations["model_name"], choices=model_name, value=model_name[0] if len(model_name) >= 1 else "", interactive=True, allow_custom_value=True)model_index3 = gr.Dropdown(label=translations["index_path"], choices=index_path, value=index_path[0] if len(index_path) >= 1 else "", interactive=True, allow_custom_value=True)refesh3 = gr.Button(translations["refesh"])with gr.Group():with gr.Row():cleaner2 = gr.Checkbox(label=translations["clear_audio"], value=False, interactive=True)autotune2 = gr.Checkbox(label=translations["autotune"], value=False, interactive=True)6 unmodified linesconvert_button3 = gr.Button(translations["convert_audio"], variant="primary")with gr.Row():with gr.Column():with gr.Row():pitch3 = gr.Slider(minimum=-20, maximum=20, step=1, info=translations["pitch_info"], label=translations["pitch"], value=0, interactive=True)index_strength2 = gr.Slider(label=translations["index_strength"], info=translations["index_strength_info"], minimum=0, maximum=1, value=0.5, step=0.01, interactive=True, visible=model_index2.value != "")with gr.Accordion(translations["input_output"], open=False):with gr.Column():export_format2 = gr.Radio(label=translations["export_format"], info=translations["export_info"], choices=["wav", "mp3", "flac", "ogg", "opus", "m4a", "mp4", "aac", "alac", "wma", "aiff", "webm", "ac3"], value="wav", interactive=True)
main/app/tabs/inference/inference.py+3-7