xieqilenb commited on
Commit
3d75bed
·
verified ·
1 Parent(s): c819855

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -39,12 +39,6 @@ def generate_story(caption):
39
  else:
40
  story = full_text.strip()
41
 
42
- words = story.split()
43
- if len(words) > 300:
44
- story = " ".join(words[:300])
45
- elif len(words) < 100:
46
- story += "\n\n(Note: The generated story is shorter than the desired 100 words.)"
47
-
48
  return story
49
 
50
  def text_to_speech(text, output_file="output.mp3"):
 
39
  else:
40
  story = full_text.strip()
41
 
 
 
 
 
 
 
42
  return story
43
 
44
  def text_to_speech(text, output_file="output.mp3"):