mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-04-05 04:08:58 +08:00
Replace file import with drag&drop
This commit is contained in:
parent
35768c3c5c
commit
6683c8de6c
17
infer-web.py
17
infer-web.py
@ -518,18 +518,19 @@ with gr.Blocks(title="RVC WebUI") as app:
|
|||||||
label=i18n("变调(整数, 半音数量, 升八度12降八度-12)"),
|
label=i18n("变调(整数, 半音数量, 升八度12降八度-12)"),
|
||||||
value=0,
|
value=0,
|
||||||
)
|
)
|
||||||
input_audio0 = gr.Textbox(
|
input_audio0 = gr.File(
|
||||||
label=i18n(
|
label=i18n("输入待处理音频文件路径(默认是正确格式示例)"),
|
||||||
"输入待处理音频文件路径(默认是正确格式示例)"
|
|
||||||
),
|
|
||||||
placeholder="C:\\Users\\Desktop\\audio_example.wav",
|
|
||||||
)
|
|
||||||
file_index1 = gr.File(
|
|
||||||
label=i18n("特征检索库文件路径,为空则使用下拉的选择结果"),
|
|
||||||
file_count="single",
|
file_count="single",
|
||||||
file_types=[".index"],
|
file_types=[".index"],
|
||||||
interactive=True
|
interactive=True
|
||||||
)
|
)
|
||||||
|
file_index1 = gr.Textbox(
|
||||||
|
label=i18n(
|
||||||
|
"特征检索库文件路径,为空则使用下拉的选择结果"
|
||||||
|
),
|
||||||
|
placeholder="C:\\Users\\Desktop\\model_example.index",
|
||||||
|
interactive=True,
|
||||||
|
)
|
||||||
file_index2 = gr.Dropdown(
|
file_index2 = gr.Dropdown(
|
||||||
label=i18n("自动检测index路径,下拉式选择(dropdown)"),
|
label=i18n("自动检测index路径,下拉式选择(dropdown)"),
|
||||||
choices=sorted(index_paths),
|
choices=sorted(index_paths),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user