Spaces:
Build error
Build error
Leo Liu commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,6 @@ 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 |
-
safe_story = story_text.replace("violence", "").replace("scary", "").replace("died", "solved")
|
| 27 |
return safe_story
|
| 28 |
|
| 29 |
# text2audio
|
|
|
|
| 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 safe_story
|
| 27 |
|
| 28 |
# text2audio
|