Spaces:
Build error
Build error
Leo Liu commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ def text2story(text):
|
|
| 23 |
last_punctuation = max(story_text.rfind("."), story_text.rfind("!"), story_text.rfind("?"))
|
| 24 |
if last_punctuation != -1:
|
| 25 |
story_text = story_text[:last_punctuation+1]
|
| 26 |
-
return
|
| 27 |
|
| 28 |
# text2audio
|
| 29 |
def text2audio(story_text):
|
|
|
|
| 23 |
last_punctuation = max(story_text.rfind("."), story_text.rfind("!"), story_text.rfind("?"))
|
| 24 |
if last_punctuation != -1:
|
| 25 |
story_text = story_text[:last_punctuation+1]
|
| 26 |
+
return story_text
|
| 27 |
|
| 28 |
# text2audio
|
| 29 |
def text2audio(story_text):
|