fcesc-code commited on
Commit
f16d9ed
1 Parent(s): 9029146

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- st.write('The state is ', st.session_state['name'])
 
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