Spaces:
Sleeping
Sleeping
NotSamy
commited on
Commit
·
2d7e00d
1
Parent(s):
8775972
fix
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ def start_storytelling():
|
|
27 |
|
28 |
|
29 |
story_part = generate_story(story_prompt)
|
30 |
-
|
31 |
-
|
32 |
|
33 |
# Continuation of story (generate part two)
|
34 |
while True:
|
@@ -37,10 +37,10 @@ def start_storytelling():
|
|
37 |
if continue_story.lower() == 'yes':
|
38 |
user_input = st.text_input("\nWhat should happen next?")
|
39 |
story_part = generate_story(user_input)
|
40 |
-
|
41 |
-
|
42 |
else:
|
43 |
-
|
44 |
break
|
45 |
|
46 |
# Function start
|
|
|
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:
|
|
|
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
|