JSY8 commited on
Commit
7d9cbb3
Β·
verified Β·
1 Parent(s): 8d03f81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -55,8 +55,10 @@ clean_raw = ' '.join(word for word in re.findall(allowed_pattern, raw) if len(wo
55
  words = clean_raw.split()
56
  story = " ".join(words[:100])
57
 
 
58
  st.write("**πŸ“– Your funny story: πŸ“–**")
59
  st.write(story)
 
60
 
61
  # Generate audio from cleaned story
62
  chunks = textwrap.wrap(story, width=200)
 
55
  words = clean_raw.split()
56
  story = " ".join(words[:100])
57
 
58
+ story = clean_generated_story(raw)
59
  st.write("**πŸ“– Your funny story: πŸ“–**")
60
  st.write(story)
61
+ return story
62
 
63
  # Generate audio from cleaned story
64
  chunks = textwrap.wrap(story, width=200)