TomMoule91 commited on
Commit
c1ad901
1 Parent(s): ae2548e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def main():
18
  friends = st.text_input("Enter the names of some of their friends:")
19
 
20
  if st.button("Generate Story"):
21
- if name and interests and friends:
22
  story = generate_bedtime_story(name, interests, age, friends.split(","))
23
  st.write(story)
24
  else:
 
18
  friends = st.text_input("Enter the names of some of their friends:")
19
 
20
  if st.button("Generate Story"):
21
+ if name and interests and friends and age:
22
  story = generate_bedtime_story(name, interests, age, friends.split(","))
23
  st.write(story)
24
  else: