Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,8 @@ st.markdown("Let's create a magical story just for you!")
|
|
18 |
# User input
|
19 |
child_name = st.text_input("What's your name, young storyteller?", on_change=child_update)
|
20 |
st.write('Your name is ', child_name)
|
21 |
-
|
|
|
22 |
story_theme = st.selectbox("What would you like your story to be about?",
|
23 |
["Space Adventure", "Magical Forest", "Underwater World", "Dinosaur Discovery"])
|
24 |
|
|
|
18 |
# User input
|
19 |
child_name = st.text_input("What's your name, young storyteller?", on_change=child_update)
|
20 |
st.write('Your name is ', child_name)
|
21 |
+
if 'name' in st.session_state:
|
22 |
+
st.write('The state is ', st.session_state['name'])
|
23 |
story_theme = st.selectbox("What would you like your story to be about?",
|
24 |
["Space Adventure", "Magical Forest", "Underwater World", "Dinosaur Discovery"])
|
25 |
|