Replace file import with drag&drop

This commit is contained in:
VSlobolinskyi 2025-03-18 10:35:00 +02:00
parent d6de82afef
commit 35768c3c5c

View File

@ -524,12 +524,11 @@ with gr.Blocks(title="RVC WebUI") as app:
), ),
placeholder="C:\\Users\\Desktop\\audio_example.wav", placeholder="C:\\Users\\Desktop\\audio_example.wav",
) )
file_index1 = gr.Textbox( file_index1 = gr.File(
label=i18n( label=i18n("特征检索库文件路径,为空则使用下拉的选择结果"),
"特征检索库文件路径,为空则使用下拉的选择结果" file_count="single",
), file_types=[".index"],
placeholder="C:\\Users\\Desktop\\model_example.index", interactive=True
interactive=True,
) )
file_index2 = gr.Dropdown( file_index2 = gr.Dropdown(
label=i18n("自动检测index路径,下拉式选择(dropdown)"), label=i18n("自动检测index路径,下拉式选择(dropdown)"),