FrankZxShen
commited on
Commit
·
56e347e
1
Parent(s):
e451469
Update app.py
Browse files
app.py
CHANGED
@@ -83,6 +83,13 @@ def create_vc_fn(model, hps, speaker_ids):
|
|
83 |
|
84 |
return vc_fn
|
85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
|
87 |
def get_text(text, hps, is_symbol):
|
88 |
text_norm = text_to_sequence(
|
@@ -215,6 +222,9 @@ if __name__ == "__main__":
|
|
215 |
return text;
|
216 |
}}""")
|
217 |
# select character
|
|
|
|
|
|
|
218 |
char_dropdown = gr.Dropdown(
|
219 |
choices=speakers, value=speakers[0], label='character')
|
220 |
language_dropdown = gr.Dropdown(
|
|
|
83 |
|
84 |
return vc_fn
|
85 |
|
86 |
+
def search_speaker(search_value):
|
87 |
+
for s in speakers:
|
88 |
+
if search_value == s:
|
89 |
+
return s
|
90 |
+
for s in speakers:
|
91 |
+
if search_value in s:
|
92 |
+
return s
|
93 |
|
94 |
def get_text(text, hps, is_symbol):
|
95 |
text_norm = text_to_sequence(
|
|
|
222 |
return text;
|
223 |
}}""")
|
224 |
# select character
|
225 |
+
with gr.Row():
|
226 |
+
search = gr.Textbox(label="Search Speaker", lines=1)
|
227 |
+
btn2 = gr.Button(value="Search")
|
228 |
char_dropdown = gr.Dropdown(
|
229 |
choices=speakers, value=speakers[0], label='character')
|
230 |
language_dropdown = gr.Dropdown(
|