Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -254,7 +254,7 @@ def infer_batch(ref_audio, ref_text, gen_text_batches, exp_name, remove_silence,
|
|
| 254 |
generated_waves = []
|
| 255 |
spectrograms = []
|
| 256 |
# Remove the last 5 chats, ensuring you don't attempt to slice beyond the list length
|
| 257 |
-
|
| 258 |
|
| 259 |
# Ensure ref_text ends with a space if the last character is single-byte
|
| 260 |
# if len(ref_text[-1].encode("utf-8")) == 1:
|
|
|
|
| 254 |
generated_waves = []
|
| 255 |
spectrograms = []
|
| 256 |
# Remove the last 5 chats, ensuring you don't attempt to slice beyond the list length
|
| 257 |
+
# ref_text = ref_text[:-3] + " " if len(ref_text) >= 3 else ref_text
|
| 258 |
|
| 259 |
# Ensure ref_text ends with a space if the last character is single-byte
|
| 260 |
# if len(ref_text[-1].encode("utf-8")) == 1:
|