Gregniuki commited on
Commit
17b8b88
·
verified ·
1 Parent(s): 6f131ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -233,7 +233,7 @@ def infer_batch(ref_audio, ref_text, gen_text_batches, exp_name, remove_silence,
233
  generated_waves = []
234
  spectrograms = []
235
  # Remove the last 5 chats, ensuring you don't attempt to slice beyond the list length
236
- ref_text = ref_text[:-9] + ". " if len(ref_text) >= 9 else ref_text
237
 
238
  # Ensure ref_text ends with a space if the last character is single-byte
239
  # if len(ref_text[-1].encode("utf-8")) == 1:
 
233
  generated_waves = []
234
  spectrograms = []
235
  # Remove the last 5 chats, ensuring you don't attempt to slice beyond the list length
236
+ ref_text = ref_text[:-9] + ". " if len(ref_text) >= 9 else ref_text
237
 
238
  # Ensure ref_text ends with a space if the last character is single-byte
239
  # if len(ref_text[-1].encode("utf-8")) == 1: