Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -233,7 +233,7 @@ def infer_batch(ref_audio, ref_text, gen_text_batches, exp_name, remove_silence,
|
|
233 |
# Define weights for characters
|
234 |
punctuation_weights = {",": 1, ".": 1, " ": 1} # Add more punctuation as needed
|
235 |
|
236 |
-
for i, gen_text in enumerate(
|
237 |
# Prepare the text
|
238 |
text_list = [ref_text + gen_text]
|
239 |
final_text_list = convert_char_to_pinyin(text_list)
|
|
|
233 |
# Define weights for characters
|
234 |
punctuation_weights = {",": 1, ".": 1, " ": 1} # Add more punctuation as needed
|
235 |
|
236 |
+
for i, gen_text in enumerate(progress.tqdm(gen_text_batches)):
|
237 |
# Prepare the text
|
238 |
text_list = [ref_text + gen_text]
|
239 |
final_text_list = convert_char_to_pinyin(text_list)
|