Leo Liu commited on
Commit
9ede58e
·
verified ·
1 Parent(s): a01c9bc

Update app.py

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