Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -166,9 +166,9 @@ def infer_batch(ref_audio, ref_text, gen_text_batches, exp_name, remove_silence,
|
|
| 166 |
|
| 167 |
for i, gen_text in enumerate(progress.tqdm(gen_text_batches)):
|
| 168 |
# Prepare the text
|
| 169 |
-
if len(ref_text[-1].encode('utf-8')) == 1:
|
| 170 |
#ref_text = ref_text + " "
|
| 171 |
-
|
| 172 |
text_list = [ref_text + gen_text]
|
| 173 |
final_text_list = convert_char_to_pinyin(text_list)
|
| 174 |
|
|
|
|
| 166 |
|
| 167 |
for i, gen_text in enumerate(progress.tqdm(gen_text_batches)):
|
| 168 |
# Prepare the text
|
| 169 |
+
# if len(ref_text[-1].encode('utf-8')) == 1:
|
| 170 |
#ref_text = ref_text + " "
|
| 171 |
+
# gen_text = " " + gen_text
|
| 172 |
text_list = [ref_text + gen_text]
|
| 173 |
final_text_list = convert_char_to_pinyin(text_list)
|
| 174 |
|