Gregniuki commited on
Commit
a72afdf
·
verified ·
1 Parent(s): ae2e763

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- 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:
 
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: