Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -192,11 +192,11 @@ def infer_batch(ref_audio, ref_text, gen_text_batches, exp_name, remove_silence,
|
|
192 |
generated_waves = []
|
193 |
spectrograms = []
|
194 |
|
195 |
-
|
|
|
196 |
for i, gen_text in enumerate(progress.tqdm(gen_text_batches)):
|
197 |
# Prepare the text
|
198 |
-
|
199 |
-
pref_text = ref_text + " "
|
200 |
|
201 |
text_list = [ref_text + gen_text]
|
202 |
final_text_list = convert_char_to_pinyin(text_list)
|
|
|
192 |
generated_waves = []
|
193 |
spectrograms = []
|
194 |
|
195 |
+
if len(ref_text[-1].encode("utf-8")) == 1:
|
196 |
+
pref_text = ref_text + " "
|
197 |
for i, gen_text in enumerate(progress.tqdm(gen_text_batches)):
|
198 |
# Prepare the text
|
199 |
+
|
|
|
200 |
|
201 |
text_list = [ref_text + gen_text]
|
202 |
final_text_list = convert_char_to_pinyin(text_list)
|