NotSamy commited on
Commit
b221ff7
·
1 Parent(s): 79d1c42
Files changed (1) hide show
  1. app.py +1 -14
app.py CHANGED
@@ -23,25 +23,12 @@ def generate_story(user_input):
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
47
  start_storytelling()
 
23
  def start_storytelling():
24
  print("Welcome to the Storytelling bot.")
25
 
26
+ story_prompt = st.text_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
  # Function start
34
  start_storytelling()