Leo Liu commited on
Commit
a01c9bc
·
verified ·
1 Parent(s): 26ee4b9

Update app.py

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