Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,10 +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 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
|
63 |
# Generate audio from cleaned story
|
64 |
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)
|