NotSamy commited on
Commit
79d1c42
·
1 Parent(s): 2d7e00d
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -23,24 +23,24 @@ def generate_story(user_input):
23
  def start_storytelling():
24
  print("Welcome to the Storytelling bot.")
25
 
26
- story_prompt = st.text_input("Please give a prompt for the story.")
27
 
28
 
29
  story_part = generate_story(story_prompt)
30
- st.write("\nHere's the beginning of your story:")
31
- st.write(story_part)
32
 
33
  # Continuation of story (generate part two)
34
  while True:
35
- continue_story = st.text_input("\nWould you like to continue with this story?")
36
 
37
  if continue_story.lower() == 'yes':
38
- user_input = st.text_input("\nWhat should happen next?")
39
  story_part = generate_story(user_input)
40
- st.write("\nContinued:")
41
- st.write(story_part)
42
  else:
43
- st.write("\nEnjoy!")
44
  break
45
 
46
  # Function start
 
23
  def start_storytelling():
24
  print("Welcome to the Storytelling bot.")
25
 
26
+ story_prompt = input("What would you like your story to be about?")
27
 
28
 
29
  story_part = generate_story(story_prompt)
30
+ print("\nHere's the beginning of your story:")
31
+ print(story_part)
32
 
33
  # Continuation of story (generate part two)
34
  while True:
35
+ continue_story = input("\nDo you want to continue the story? (yes/no): ")
36
 
37
  if continue_story.lower() == 'yes':
38
+ user_input = input("\nWhat should happen next?")
39
  story_part = generate_story(user_input)
40
+ print("\nContinued:")
41
+ print(story_part)
42
  else:
43
+ print("\nEnjoy!")
44
  break
45
 
46
  # Function start