Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,10 +20,10 @@ if st.button("Generate Story"):
|
|
20 |
resolution = text_generator(f"Provide a resolution for the {ending} ending.")
|
21 |
|
22 |
# Combine the elements into a full story
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
|
27 |
-
st.markdown(
|
28 |
else:
|
29 |
st.warning("Please provide a title and character name.")
|
|
|
20 |
resolution = text_generator(f"Provide a resolution for the {ending} ending.")
|
21 |
|
22 |
# Combine the elements into a full story
|
23 |
+
story = f"# {title}\n\nOnce upon a time, in the {era} era, there was a character named {character}. "
|
24 |
+
story += f"This is a {genre} story of {character}, a tale filled with {setting}, a story of {conflict}. "
|
25 |
+
story += f"In the end, a {resolution}."
|
26 |
|
27 |
+
st.markdown(story)
|
28 |
else:
|
29 |
st.warning("Please provide a title and character name.")
|