Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,17 +14,17 @@ story_length = st.slider("How long should the story be?", 50, 200, 100)
|
|
14 |
include_moral = st.checkbox("Include a moral lesson?")
|
15 |
|
16 |
if st.button("Create My Story!"):
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
|
29 |
# Add some child-friendly decorations
|
30 |
st.markdown("---")
|
|
|
14 |
include_moral = st.checkbox("Include a moral lesson?")
|
15 |
|
16 |
if st.button("Create My Story!"):
|
17 |
+
# Generate the story
|
18 |
+
story = "En la ind煤stria editorial i en disseny gr脿fic, lorem ipsum 茅s un text de farciment que s'usa habitualment per a mostrar els elements gr脿fics d'un document, com ara la tipografia o la composici贸"
|
19 |
+
|
20 |
+
# Display the story
|
21 |
+
st.markdown("## Your Magical Story")
|
22 |
+
st.write(story)
|
23 |
+
|
24 |
+
# Add a fun element
|
25 |
+
st.balloons()
|
26 |
+
else:
|
27 |
+
st.warning("Please tell me your name and choose a story theme.")
|
28 |
|
29 |
# Add some child-friendly decorations
|
30 |
st.markdown("---")
|