SAUL19 commited on
Commit
dd06693
·
1 Parent(s): 1f7e24e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def generateAudio(text_to_audio, s3_save_as):
48
 
49
  s3_save_as = '-'.join(s3_save_as.split()) + ".wav"
50
 
51
- def cut_text(text, max_tokens=500):
52
  # Remove non-alphanumeric characters, except periods and commas
53
  text = re.sub(r"[^\w\s.,]", "", text)
54
 
 
48
 
49
  s3_save_as = '-'.join(s3_save_as.split()) + ".wav"
50
 
51
+ def cut_text(text, max_tokens=500):
52
  # Remove non-alphanumeric characters, except periods and commas
53
  text = re.sub(r"[^\w\s.,]", "", text)
54