Skip to content

Commit 12bccfc

Browse files
committed
feat: support no index choice Pt.2
1 parent d3b9e4d commit 12bccfc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tabs/tts/tts.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
filter_dropdowns,
2020
get_files,
2121
get_speakers_id,
22+
index_files,
2223
match_index,
2324
refresh_embedders_folders,
2425
update_filter_visibility,
@@ -72,7 +73,9 @@ def tts_tab():
7273
index_file = gr.Dropdown(
7374
label=i18n("Index File"),
7475
info=i18n("Select the index file to use for the conversion."),
75-
choices=sorted(get_files("index")),
76+
choices=[("No Index", "")] + [(x, x) for x in index_files]
77+
if index_files
78+
else [],
7679
value=match_index(default_weight),
7780
interactive=True,
7881
allow_custom_value=True,

0 commit comments

Comments
 (0)