Spaces:
Sleeping
Sleeping
File size: 1,428 Bytes
12d6ed1 a9085ab 9bc3373 90ada41 0134444 a9085ab a95ad26 bec08ce a95ad26 a9085ab |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
import streamlit as st
# Set up the Streamlit app
# st.Page(page, *, title='Rainyday', default='True')
# pg = st.navigation([st.Page("app.py", title="Bedstories"), st.Page("pages/response.py", title="Bedstory")])
# pg.run()
st.title("🧚♀️ Magic Story Buddy 📚")
st.markdown("Let's create a magical story just for you!")
# User input
child_name = st.text_input("What's your name, young storyteller?")
story_theme = st.selectbox("What would you like your story to be about?",
["Space Adventure", "Magical Forest", "Underwater World", "Dinosaur Discovery"])
# Additional options
story_length = st.slider("How long should the story be?", 50, 200, 100)
include_moral = st.checkbox("Include a moral lesson?")
if st.button("Create My Story!"):
# Generate the story
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ó"
# Display the story
st.markdown("## Your Magical Story")
st.write(story)
# Add a fun element
st.balloons()
# Go to response page
st.switch_page("pages/response.py")
else:
st.warning("Please tell me your name and choose a story theme.")
# Add some child-friendly decorations
st.markdown("---")
st.markdown("🌟 Remember, you're the star of every story! 🌟")
|