mkoot007 commited on
Commit
34332b0
1 Parent(s): 6bbc4d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- full_story = f"# {title}\n\nOnce upon a time, in the {era} era, there was a character named {character}. "
24
- full_story += f"This is a {genre} story of {character}, a tale filled with {setting}, a story of {conflict}. "
25
- full_story += f"In the end, a {resolution}."
26
 
27
- st.markdown(full_story)
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.")