Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
| 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 |
|