Spaces:
Sleeping
Sleeping
NotSamy
commited on
Commit
·
79d1c42
1
Parent(s):
2d7e00d
change
Browse files
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 =
|
27 |
|
28 |
|
29 |
story_part = generate_story(story_prompt)
|
30 |
-
|
31 |
-
|
32 |
|
33 |
# Continuation of story (generate part two)
|
34 |
while True:
|
35 |
-
continue_story =
|
36 |
|
37 |
if continue_story.lower() == 'yes':
|
38 |
-
user_input =
|
39 |
story_part = generate_story(user_input)
|
40 |
-
|
41 |
-
|
42 |
else:
|
43 |
-
|
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
|